ECarrasco91 / sql-practice-hw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

title type duration creator
SQL Practice
Homework
1:00
name city
Drew Mahrt
NYC

SQL Practice

Exercise

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.

Requirements

  • 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

Deliverable

A text file containing each of the SQL commands. Submit a pull request!

Additional Resources


Licensing

  1. All content is licensed under a CC­BY­NC­SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.

About

License:Other