Question: 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
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) and manufacturer (Chevrolet, Ford, Toyota, etc.), and year the vehicle was manufactured. What would be the result of this command: Select * FROM vehicletype WHERE typeofvehicle=truck ORDER BY year;
a) A list of all the vehicles in the database would be displayed and ordered by year manufactured.
b) A list of only the trucks would be displayed and those vehicles would be listed in order of the year the vehicle was manufactured.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
