Working with Aggregate Queries
Lesson 5 Directory
This Tutorial's Database: Orders.db
Orders.db
Orders.db
contains a table called Orders
Orders
Table Attributes:
OrderID
INTEGER PRIMARY KEYProductName
TEXT NOT NULLOrderSize
INTEGER NOT NULLCustomerID
INTEGER NULL
First 10 values within the dataset
Exercises
Determine the query for the following analysis.
Determine the total number of records within the
orders
tableDetermine the number of unique products sold
Determine the number of our customer base
Determine the total number of goods sold
Determine the average amount of goods sold
Determine the single record with the most items sold
Determine the single record with the least items sold
Last updated