Skip to content

mbeken/interviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interviews

SQL Exercise

We have an online grocery store. Customers can order grocery items and they receive a bill for their order that looks like this:

Image of SO

The data is contained in a SQLITE database.

ERD

You can access the database here.

  1. Write a sql statement to show

    • all service order headers

      ERD

    • all service order numbers with the customer name

      ERD

    • service order 1234 details

      • service order number
      • customer name
      • product name
      • qty
      • price
      • total for the line

      ERD

    • the total invoice price for each service order

      ERD

    • the max price paid for an Apple

      ERD

  2. Look at the details for so_number = 1237. Notice there is only one line item, but it has been updated.

    ERD

Write a statement to show

  • the most recent version of this line item

    ERD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published