create a working mini-database system from a user’s basic requirements. SQL DDL and DML must be used to create, populate and update tables. This database is for a typical Columbus car dealership. We will keep track of all the cars on the lot. For each car we will track the model ( modelA, modelB, modelC or make up your own), the list price, a status (available, sold) and a list of options the car has. A car may have more than one option (you may make these up, example: sun roof, power windows, …).. When the car is sold, we will keep track of the date, and the name of the salesman that sold the car. For each salesman, we will keep track of their name, gender, salary, and total amount sold.
The purpose of this activity is to create a working mini-
This database is for a typical Columbus car dealership. We will keep track of all the cars on the lot. For each car we will track the model ( modelA, modelB, modelC or make up your own), the list price, a status (available, sold) and a list of options the car has. A car may have more than one option (you may make these up, example: sun roof, power windows, …).. When the car is sold, we will keep track of the date, and the name of the salesman that sold the car. For each salesman, we will keep track of their name, gender, salary, and total amount sold.
The requirement is to use DDL and DML to create, populate, and update the tables.
So as per the need, we have used queries insert into, create table, update table.
When the car is sold, we need to keep the track of the date, name of the salesman that sold the car.
So, this table will have two foreign keys, one will be the primary key of the car table i.e. car model name and the other will be the primary key of the salesman table i.e the name of the salesman.
Step by step
Solved in 3 steps with 3 images