create a new database called Assignment1_firstname_lastname- replace firstname_lastname with your first name and last name. 2....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
create a new database called "Assignment1_firstname_lastname"- replace firstname_lastname with your first name and last name. 2. After you have created your database successfully then switch to it using the "USE" keyword. 3. Create a Table called "Dealership", it will look like the below table. The datatype will be in the second row. Any constrictions on the table will be in the third row. (Note PK means primary key, FK means Foreign Key) Name String (25 length) UNIQUE ID Whole Number PK AUTO INCREMENT VIN String (25) PK City String (25) NOT NULL 1. Create another table called "CARS", it will look like the below table. The datatype will be in the second row. Any constrictions on the table will be in the third row. Make String (25) Model String (25) ManagerName String (25) NOT NULL Price Floating point number NOT NULL DealershipID Whole Number FK NOT NULL ("1GCDC14H5DS161081","Chevy", "K10", 1000.59, 2), ("JN1DA31A52T300757", "Nissan", "Maxima", 2078.99, 1), ("WAUDK84AXRN029130", "Audi", "100", 10000.00, 3), ("1VWCG9178BV261632", "Volkswagen", "Rabbit", 500.90, 4), ("WVWGA0337CE005866", "Volkswagen", "Quantum", 850.90, 4), ("KMHDU4AD4AU955646", "Hyundai", "Elantra", 6000, 1), ("YOUR OWN_DATA ", " YOUR_OWN_DATA ", " YOUR OWN_DATA", YOUR_OWN_DATA, 1) 2. Once you have completed creating the tables, we will add some data. Attached is part of the data (mostly the information), it is up to you to correctly ensure that the data is added to the table and the correct order to add them in. NOTE: ensure you replace any FIRSTNAME_LASTNAMES values or YOUR OWN_DATA values. CAR DATA: DEALERSHIP DATA: ("AS1 Cars", "Ottawa", "FirstName LastName"), ("Vinnie's", "Michigan", "Vinnie Vince"), ("True Cars", "Toronto", "Max Cars"), ("Volkswagon", "Frankfurt", "Johan Volks") BEFORE HANDING IN: You should have a word document with: SQL command for: 3. After adding the new data to each table, we will perform the following updates, and deletes. Update: You noticed that there was a typo in the Volkswagen Dealership. Someone added "Volkswagon" instead. Change the spelling from "Volkswagon to Volkswagen" using a update statement. Delete: The deal to move the Audi 100 to the dealership "True Cars" fell through. You will need to delete that entry in the cars table. Delete the Car "Audi 100" from the cars table. 4. Once completed, right click each table, and click "Select rows - limit 1000". You will get the results of those tables with the updates and deletes. Take a screenshot of each table's data and add it to your word document with ALL your SQL statements. Creating a new database, Switching focus to the new database Creating first table Creating second table Adding dealership data Adding car data Updating a table Deleting data in a table And two screenshots with output. create a new database called "Assignment1_firstname_lastname"- replace firstname_lastname with your first name and last name. 2. After you have created your database successfully then switch to it using the "USE" keyword. 3. Create a Table called "Dealership", it will look like the below table. The datatype will be in the second row. Any constrictions on the table will be in the third row. (Note PK means primary key, FK means Foreign Key) Name String (25 length) UNIQUE ID Whole Number PK AUTO INCREMENT VIN String (25) PK City String (25) NOT NULL 1. Create another table called "CARS", it will look like the below table. The datatype will be in the second row. Any constrictions on the table will be in the third row. Make String (25) Model String (25) ManagerName String (25) NOT NULL Price Floating point number NOT NULL DealershipID Whole Number FK NOT NULL ("1GCDC14H5DS161081","Chevy", "K10", 1000.59, 2), ("JN1DA31A52T300757", "Nissan", "Maxima", 2078.99, 1), ("WAUDK84AXRN029130", "Audi", "100", 10000.00, 3), ("1VWCG9178BV261632", "Volkswagen", "Rabbit", 500.90, 4), ("WVWGA0337CE005866", "Volkswagen", "Quantum", 850.90, 4), ("KMHDU4AD4AU955646", "Hyundai", "Elantra", 6000, 1), ("YOUR OWN_DATA ", " YOUR_OWN_DATA ", " YOUR OWN_DATA", YOUR_OWN_DATA, 1) 2. Once you have completed creating the tables, we will add some data. Attached is part of the data (mostly the information), it is up to you to correctly ensure that the data is added to the table and the correct order to add them in. NOTE: ensure you replace any FIRSTNAME_LASTNAMES values or YOUR OWN_DATA values. CAR DATA: DEALERSHIP DATA: ("AS1 Cars", "Ottawa", "FirstName LastName"), ("Vinnie's", "Michigan", "Vinnie Vince"), ("True Cars", "Toronto", "Max Cars"), ("Volkswagon", "Frankfurt", "Johan Volks") BEFORE HANDING IN: You should have a word document with: SQL command for: 3. After adding the new data to each table, we will perform the following updates, and deletes. Update: You noticed that there was a typo in the Volkswagen Dealership. Someone added "Volkswagon" instead. Change the spelling from "Volkswagon to Volkswagen" using a update statement. Delete: The deal to move the Audi 100 to the dealership "True Cars" fell through. You will need to delete that entry in the cars table. Delete the Car "Audi 100" from the cars table. 4. Once completed, right click each table, and click "Select rows - limit 1000". You will get the results of those tables with the updates and deletes. Take a screenshot of each table's data and add it to your word document with ALL your SQL statements. Creating a new database, Switching focus to the new database Creating first table Creating second table Adding dealership data Adding car data Updating a table Deleting data in a table And two screenshots with output.
Expert Answer:
Related Book For
Project Management The Managerial Process
ISBN: 9781260570434
8th Edition
Authors: Eric W Larson, Clifford F. Gray
Posted Date:
Students also viewed these databases questions
-
Donna turned 72 on January 7th of Year 2 (which is before the year 2020). Her profit-sharing account balance was $100,000 at the end of Year 1 and $150,000 at the end of Year 2. Her beneficiary is...
-
Dr. Jenny Brown is the new CEO of a hotel chain, Hassle Free Hotel. The hotels headquarter is based in Atlanta, Georgia in the U.S. The company was established in 2004. It has a central reservation...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
State DMV records indicate that of all vehicles undergoing emissions testing during the previous year, 70% passed on the first try. A random sample of 200 cars tested in a particular county during...
-
The open switch in Figure P32.72 is closed at t = 0. Before the switch is closed, the capacitor is uncharged, and all currents are zero. Determine the currents in L, C, and R and the potential...
-
Should the docking pilots be classified as supervisors and, thus, excluded from participating in a bargaining unit for purposes of collective bargaining? Explain your reasoning?
-
Regularly attending the lectures of a course and passing that course. Determine whether the events are independent or dependent. Explain your reasoning.
-
The vapor pressure of toluene is given in Exercise 4.8, and that of n-heptane is given in the accompanying table. (a) Plot an x-y equilibrium diagram for this system at 1 atm by using Raoult's and...
-
How does memory management in RTOS differ from that in general-purpose operating systems? Discuss techniques for real-time memory allocation and their impact on system performance
-
The graph above represents various flows that can occur through a sewage treatment plant with the numbers on the arcs representing the maximum flow (in tons of sewage per hour) that can be...
-
Identify non-marginal investors To assess a company, we need to consider the future cash flow of the business; its sustainability and profitability. This is an important element of the analysis work....
-
You deposit $200 into an account at the end of each month. This money earns 5% interest annually. What will be the value of your money in 10 years if you want to use it to supplement your income?...
-
Identify the program you have selected for evaluation. In your own words, describe what the process evaluation is and why you are doing it. Explain why the questions you selected are important.
-
The local government is worried that profits in the industry may lead to high levels of production of alcoholic beverages if the government issues additional licenses, but it also does not want...
-
How was it that during the "Prosperity Decade" in Texas: 1) agriculture expanded to record levels while most farmers struggled economically and 2) the state's manufacturing sector grew rapidly but...
-
The price of a bond is inversely proportional to the interest rate prevailing in the marketplace. To illustrate this, suppose you own a 5-year $1,000 bond that pays a coupon of 4% (this means that...
-
If the joint cost function for two products is C(x, y) = xy2 + 1 dollars (a) Find the marginal cost (function) with respect to x. (b) Find the marginal cost with respect to y.
-
Why is the range so much higher for IT projects than construction projects?
-
Describe the four phases of the traditional project life cycle. Which phase do you think would be the most difficult one to complete?
-
How did Singer enhance trust on his project?
-
Consider two hypersonic wind tunnels with the same reservoir temperature of \(3000 \mathrm{~K}\) in air. (a) One tunnel has a test-section Mach number of 10. Calculate the flow velocity in the test...
-
The reservoir temperature calculated in problem 5.20 is beyond the capabilities of heaters in the reservoir of continuous-flow wind tunnels using air. This is why you do not see a Mach 20...
-
As problems 5.18 and 5.19 reflect, the air temperature in the test section of conventional hypersonic wind tunnels is low. In reality, air liquefies at a temperature of about \(50 \mathrm{~K}\)...
Study smarter with the SolutionInn App