The Relational Model: SQL
The Relational Model: SQL
In the following exercises use the data in the TAL Distributors database shown in Figure 2-1 in Chapter 2 (attached).
- Write a select statement that shows all from the table Item.
- Select all records from the table ORDERS where the Customernum is 126.
- Write a SELECT statement to list the CustomerName of the table CUSTOMER for all CustomerNames that start with C.
- Write a SELECT statement to list the description of items with a price below 30.
- Find the order number and order date for every order for parts that have a price of more than 100.
- Find the customer name and postal code for every customer whose rep is Tian (LastName).
- Same as # 6 but use nested queries.