Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

excel 3. (True/False). Will this SQL statement create a table called vehicletype

ID: 3885604 • Letter: E

Question

excel

3. (True/False). Will this SQL statement create a table called vehicletype?

CREATE TABLE vehicletype (carid PRIMARY KEY, typeofvehicle TEXT, manufacturer TEXT);

Question 3 options:

False

4. This command was used to create a table:
CREATE TABLE vehicletype (carid INTEGER PRIMARY KEY, typeofvehicle TEXT, manufacturer TEXT);

Which of the following would correctly add a row of data to the table?

Question 4 options:

INSERT INTO VALUES (1,”truck”,”Chevrolet”);

INSERT INTO vehicletype VALUES (1, truck, Chevrolet);

INSERT INTO vehicletype (1, “truck”, “Chevrolet”);

INSERT INTO vehicletype VALUES(1, “truck”, “Chevrolet”);

5. (True/False). This command was used to create a table:
CREATE TABLE vehicletype (carid INTEGER PRIMARY KEY, typeofvehicle TEXT, manufacturer TEXT);
Will the following instruction add a row to the table?

INSERT INTO vehicletype (1, “SUV”,” Honda”);

Question 5 options:

False

6. This command was used to create a table:
CREATE TABLE vehicletype (carid INTEGER PRIMARY KEY, typeofvehicle TEXT, manufacturer TEXT,year INTEGER);

At least 25 rows have been inserted with different types of vehicles (truck, sedan, SUV, sport, etc.) and manufacturer (Chevrolet, Ford, Toyota, etc.), and year the vehicle was manufactured. What would be the result of this command:

Select * FROM vehicletype WHERE manufacturer=”Ford” ORDER BY year;

Question 6 options:

A list of all the rows in the database would be displayed.

A list of only the cars manufactured by Ford would be displayed and those cars would be listed in order of the year the vehicle was manufactured.

A list of all the cars would be displayed and all cars manufactured in the same year would be listed together.

A list of cars manufactured by Ford would be displayed in the order in which they were entered into the database.

True

False

4. This command was used to create a table:
CREATE TABLE vehicletype (carid INTEGER PRIMARY KEY, typeofvehicle TEXT, manufacturer TEXT);

Which of the following would correctly add a row of data to the table?

Question 4 options:

INSERT INTO VALUES (1,”truck”,”Chevrolet”);

INSERT INTO vehicletype VALUES (1, truck, Chevrolet);

INSERT INTO vehicletype (1, “truck”, “Chevrolet”);

INSERT INTO vehicletype VALUES(1, “truck”, “Chevrolet”);

5. (True/False). This command was used to create a table:
CREATE TABLE vehicletype (carid INTEGER PRIMARY KEY, typeofvehicle TEXT, manufacturer TEXT);
Will the following instruction add a row to the table?

INSERT INTO vehicletype (1, “SUV”,” Honda”);

Question 5 options:

True

False

6. This command was used to create a table:
CREATE TABLE vehicletype (carid INTEGER PRIMARY KEY, typeofvehicle TEXT, manufacturer TEXT,year INTEGER);

At least 25 rows have been inserted with different types of vehicles (truck, sedan, SUV, sport, etc.) and manufacturer (Chevrolet, Ford, Toyota, etc.), and year the vehicle was manufactured. What would be the result of this command:

Select * FROM vehicletype WHERE manufacturer=”Ford” ORDER BY year;

Question 6 options:

A list of all the rows in the database would be displayed.

A list of only the cars manufactured by Ford would be displayed and those cars would be listed in order of the year the vehicle was manufactured.

A list of all the cars would be displayed and all cars manufactured in the same year would be listed together.

A list of cars manufactured by Ford would be displayed in the order in which they were entered into the database.

Explanation / Answer

CREATE TABLE vehicletype (carid PRIMARY KEY, typeofvehicle TEXT, manufacturer TEXT); is an invalid SQL statement data type for carid is not mentioned, So answer is FALSE. INSERT INTO vehicletype VALUES(1, “truck”, “Chevrolet”); is the correct answer. False is the anser because the INSERT statement is wrong. A list of cars manufactured by Ford would be displayed in the order in which they were entered into the database. is the correct answer.