Name:
All select statements should be tee'd into a file called lab2.answers in your home directory.
- (2 points) Using the car and manufacturer tables from last week, write a SELECT statement that displays the Manufacturer name, model, purchaseDate, and color of all the blue cars.
- (2 points) Using the car and manufacturer tables from last week, write a SELECT statement that displays the Manufacturer name, model, purchaseDate, and color of all the red cars.
- (2 points) Using the car and manufacturer tables from last week, write a SELECT statement that displays the Manufacturer name, model, purchaseDate, and color of all the red and blue cars.
- (2 points) Using the car and manufacturer tables from last week, write a SELECT statement that displays the Manufacturer name, model, purchaseDate, and color of all the cars which are NOT blue.
- (2 points) Using the car and manufacturer tables from last week, write a SELECT statement that displays the Manufacturer name, model, purchaseDate, and color of all the cars which are NOT red.
- (2 points) Using the car and manufacturer tables from last week, write a SELECT statement that displays the Manufacturer name, model, purchaseDate, and color of all the cars which are neither red nor blue.
- (2 points) Using the car and manufacturer tables from last week, write a SELECT statement that displays the Manufacturer name, model, purchaseDate, and color of all the red toyotas.
- (2 points) Using the car and manufacturer tables from last week, write a SELECT statement that displays the Manufacturer name, model, purchaseDate, and color of all the red fords.
- (2 points) Using the car and manufacturer tables from last week, write a SELECT statement that displays the Manufacturer name, model, purchaseDate, and color of all the cars purchased in or after 2001.
- (2 points) Using the car and manufacturer tables from last week, write a SELECT statement that displays the Manufacturer name, model, purchaseDate, and color of all the cars purchased before 2001.
- (1 point) show the commands necessary to delete all tables from your database.
- (4 points) show the command necessary to restore your database from the backup which exists in your home directory named db_backup.sql