title | type | duration | creator | ||||
---|---|---|---|---|---|---|---|
SQL Practice |
Homework |
1:00 |
|
Go to the W3Schools SQL Practice website. Click the Customers table on the right side to show the data it contains.
In the requirements section below, you will find tasks to complete on the Customers table. Work through as many as you can. Copy each SQL command into a text file as you complete them.
-
Find all of the names of the customers who are from London.
-
Find all of the names of the customers who have a 0 in their postal code
-
Find all of the city names that are in France
-
Update all of the cities in the UK to be London
-
Find the Customer Names and Contact Names for customers who are in North America
-
Find all of the customers whose CustomerName's start with a B and ends with an s.
-
Find all customers who have a postal code with exactly 4 digits.
-
Delete all customers whose ContactNames start with an M
-
Add the following information to the table:
- id: 110
- CustomerName: Best Bagels
- ContactName: John Smith
- Address: 234 Example St.
- City: Anytown
- PostalCode: 12345
- Country: USA
-
Delete all Customers whose CustomerNames start with an A, or whose ContactNames start with an L
A text file containing each of the SQL commands. Submit a pull request!
- All content is licensed under a CCBYNCSA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.