SQL 2

profilejuskickz1

In this assignment you will create the FINANCING_PLANS, SALES_FINANCINGS, and SALESPERSONS tables and fully populate them. You will not be creating the other tables in the ERD. 

You will be making up your own data and in many cases you will need to reuse the same customer, vehicle, and financing plan data for your sales. 

Project 2 is based on Project 1 information ----- sql script is attached 

You should use one or more SQL script files to complete this assignment. 

Here are the specific assignment steps. In order to earn full credit you must keep your steps in order, number your steps, and put everything in a single file. 

1) Create the FINANCING_PLANS table and populate it with at least 5 (five) rows of data. 

2) Add more rows as necessary to your VEHICLES table so that you have at least 50 (fifty) rows of data total. Execute a “SELECT COUNT(*) FROM vehicles” statement after you have added all your new data. Show the INSERT SQL statements you used and the SELECT COUNT(*) statement. 

3) Create the SALESPERSONS table and populate it with at least 10 (ten) rows of data. Add a Dealer_ID column but don't set it as a foreign key to the DEALERSHIPS table yet since you won’t be creating that table until a later project. 

4) Add more rows as necessary to your CUSTOMERS table so that you have at least 100 (one hundred) rows of data total. Execute a “SELECT COUNT(*) FROM customers” statement after you have added all your new data. Show the INSERT SQL statements you used and the SELECT COUNT(*) statement. 

5) Add more rows as necessary to your SALES table so that you have at least 200 (two hundred) rows of data total. Execute a “SELECT COUNT(*) FROM sales” statement after you have added all your new data. Show the INSERT SQL statements you used and the SELECT COUNT(*). 

  • 2 years ago
  • 25
Answer(1)

Purchase the answer to view it

blurred-text
  • attachment
    sqlscript.sql