Skip to content

Commit f381eb3

Browse files
committed
Updating Documentation
1 parent 559099e commit f381eb3

1 file changed

Lines changed: 16 additions & 27 deletions

File tree

‎README.md‎

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# java-sql
1+
# Java SQL
22

33
A student that completes this project shows that they can:
44

@@ -12,7 +12,7 @@ Working with SQL
1212

1313
## Instructions
1414

15-
ReImport the Northwind database into PostgreSQL using pgAdmin. This is the same data we used during the guided project.
15+
Reimport the Northwind database into PostgreSQL using pgAdmin. This is the same data we used during the guided project.
1616

1717
* [ ] ***pgAdmin data refresh***
1818

@@ -27,14 +27,13 @@ ReImport the Northwind database into PostgreSQL using pgAdmin. This is the same
2727

2828
* Clear query windows
2929

30-
### Answer the following data queries. Keep track of the SQL you write by pasting it into this document under its appropriate header below in the provided SLQ code block. You will be submitting that through the regular fork, change, pull process.
30+
### Answer the following data queries. Keep track of the SQL you write by pasting it into this document under its appropriate header below in the provided SQL code block. You will be submitting that through the regular fork, change, pull process
3131

3232
* [ ] ***find all customers that live in London. Returns 6 records***
3333

3434
<details><summary>hint</summary>
35-
<p>
35+
3636
* This can be done with SELECT and WHERE clauses
37-
</p>
3837
</details>
3938

4039
```SQL
@@ -44,9 +43,8 @@ ReImport the Northwind database into PostgreSQL using pgAdmin. This is the same
4443
* [ ] ***find all customers with postal code 1010. Returns 3 customers***
4544

4645
<details><summary>hint</summary>
47-
<p>
46+
4847
* This can be done with SELECT and WHERE clauses
49-
</p>
5048
</details>
5149

5250
```SQL
@@ -56,9 +54,8 @@ ReImport the Northwind database into PostgreSQL using pgAdmin. This is the same
5654
* [ ] ***find the phone number for the supplier with the id 11. Should be (010) 9984510***
5755

5856
<details><summary>hint</summary>
59-
<p>
57+
6058
* This can be done with SELECT and WHERE clauses
61-
</p>
6259
</details>
6360

6461
```SQL
@@ -68,9 +65,8 @@ ReImport the Northwind database into PostgreSQL using pgAdmin. This is the same
6865
* [ ] ***list orders descending by the order date. The order with date 1998-05-06 should be at the top***
6966

7067
<details><summary>hint</summary>
71-
<p>
68+
7269
* This can be done with SELECT, WHERE, and ORDER BY clauses
73-
</p>
7470
</details>
7571

7672
```SQL
@@ -80,10 +76,9 @@ ReImport the Northwind database into PostgreSQL using pgAdmin. This is the same
8076
* [ ] ***find all suppliers who have names longer than 20 characters. Returns 11 records***
8177

8278
<details><summary>hint</summary>
83-
<p>
79+
8480
* This can be done with SELECT and WHERE clauses
8581
* You can use `length(company_name)` to get the length of the name
86-
</p>
8782
</details>
8883

8984
```SQL
@@ -93,11 +88,10 @@ ReImport the Northwind database into PostgreSQL using pgAdmin. This is the same
9388
* [ ] ***find all customers that include the word 'MARKET' in the contact title. Should return 19 records***
9489

9590
<details><summary>hint</summary>
96-
<p>
91+
9792
* This can be done with SELECT and a WHERE clause using the LIKE keyword
9893
* Don't forget the wildcard '%' symbols at the beginning and end of your substring to denote it can appear anywhere in the string in question
9994
* Remember to convert your contact title to all upper case for case insensitive comparing so upper(contact_title)
100-
</p>
10195
</details>
10296

10397
```SQL
@@ -113,9 +107,8 @@ ReImport the Northwind database into PostgreSQL using pgAdmin. This is the same
113107
* the postal code is '111'
114108
* the country is 'Middle Earth'
115109
<details><summary>hint</summary>
116-
<p>
110+
117111
* This can be done with the INSERT INTO clause
118-
</p>
119112
</details>
120113

121114
```SQL
@@ -125,9 +118,8 @@ ReImport the Northwind database into PostgreSQL using pgAdmin. This is the same
125118
* [ ] ***update _Bilbo Baggins_ record so that the postal code changes to _"11122"_***
126119

127120
<details><summary>hint</summary>
128-
<p>
121+
129122
* This can be done with UPDATE and WHERE clauses
130-
</p>
131123
</details>
132124

133125
```SQL
@@ -137,34 +129,31 @@ ReImport the Northwind database into PostgreSQL using pgAdmin. This is the same
137129
* [ ] ***list orders grouped and ordered by customer company name showing the number of orders per customer company name. _Rattlesnake Canyon Grocery_ should have 18 orders***
138130

139131
<details><summary>hint</summary>
140-
<p>
132+
141133
* This can be done with SELECT, COUNT, JOIN and GROUP BY clauses. Your count should focus on a field in the Orders table, not the Customer table
142134
* There is more information about the COUNT clause on [W3 Schools](https://www.w3schools.com/sql/sql_count_avg_sum.asp)
143-
</p>
144135
</details>
145136

146137
```SQL
147138

148139
```
149140

150-
* [ ] ***list customers by contact name and the number of orders per contact name. Sort the list by number of orders in descending order. _Jose Pavarotti_ should be at the top with 31 orders followed by _Roland Mendal_ with 30 orders. Last should be _Francisco Chang_ with 1 order***
141+
* [ ] ***list customers by contact name and the number of orders per contact name. Sort the list by the number of orders in descending order. _Jose Pavarotti_ should be at the top with 31 orders followed by _Roland Mendal_ with 30 orders. Last should be _Francisco Chang_ with 1 order***
151142

152143
<details><summary>hint</summary>
153-
<p>
144+
154145
* This can be done by adding an ORDER BY clause to the previous answer and changing the group by field
155-
</p>
156146
</details>
157147

158148
```SQL
159149

160150
```
161151

162-
* [ ] ***list orders grouped by customer's city showing number of orders per city. Returns 69 Records with _Aachen_ showing 6 orders and _Albuquerque_ showing 18 orders***
152+
* [ ] ***list orders grouped by customer's city showing the number of orders per city. Returns 69 Records with _Aachen_ showing 6 orders and _Albuquerque_ showing 18 orders***
163153

164154
<details><summary>hint</summary>
165-
<p>
155+
166156
* This is very similar to the previous two queries, however, it focuses on the City rather than the Customer Names
167-
</p>
168157
</details>
169158

170159
```SQL

0 commit comments

Comments
 (0)