Quick Ref.
Functions
date
number
string
Data Types
date
number
string
Entity relation diagram Adventure Works

AdventureWorks database

Graduated questions

This data is based on Microsoft's AdventureWorksLT database. Access version: AdventureWorksLT.mdb

CustomerAW(CustomerID, FirstName, MiddleName, LastName, CompanyName, EmailAddress)
 
CustomerAddress(CustomerID, AddressID, AddressType)
 
Address(AddressID, AddressLine1, AddressLine2, City, StateProvince, CountyRegion, PostalCode)
 
SalesOrderHeader(SalesOrderID, RevisionNumber, OrderDate, CustomerID, BillToAddressID, ShipToAddressID, ShipMethod, SubTotal, TaxAmt, Freight)
 
SalesOrderDetail(SalesOrderID, SalesOrderDetailID, OrderQty, ProductID, UnitPrice, UnitPriceDiscount)
 
ProductAW(ProductID, Name, Color, ListPrice, Size, Weight, ProductModelID, ProductCategoryID)
 
ProductModel(ProductModelID, Name)
 
ProductCategory(ProductCategoryID, ParentProductCategoryID Name)
 
ProductModelProductDescription(ProductModelID, ProductDescriptionID, Culture)
 
ProductDescription(ProductDescriptionID, Description)
 

Sample queries

0a. Show the CompanyName for James D. Kramer

Results
0b. Show all the addresses listed for 'Modular Cycle Systems'

Results
0c. Show OrdeQty, the Name and the ListPrice of the order made by CustomerID 635

Results