-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Expand file tree
/
Copy pathqueries.sql
More file actions
17 lines (9 loc) · 783 Bytes
/
queries.sql
File metadata and controls
17 lines (9 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- Database Queries
-- Find all customers with postal code 1010
-- Find the phone number for the supplier with the id 11
-- List first 10 orders placed, sorted descending by the order date
-- Find all customers that live in London, Madrid, or Brazil
-- Add a customer record for "The Shire", the contact name is "Bilbo Baggins" the address is -"1 Hobbit-Hole" in "Bag End", postal code "111" and the country is "Middle Earth"
-- Update Bilbo Baggins record so that the postal code changes to "11122"
-- (Stretch) Find a query to discover how many different cities are stored in the Customers table. Repeats should not be double counted
-- (Stretch) Find all suppliers who have names longer than 20 characters. You can use `length(SupplierName)` to get the length of the name