Question: Question 4 (0.5 points) If this command correctly enters a row of data into a table, which of the following would be the correct command




Question 4 (0.5 points) If this command correctly enters a row of data into a table, which of the following would be the correct command to create that table? INSERT INTO vehicletype VALUES (1, "truck", "Chevrolet"); CREATE vehicletype carid INTEGER PRIMARY KEY typeofvehicle TEXT, manufacturer TEXT): CREATE TABLE vehicletype (carid INTEGER PRIMARY KEY, typeofvehicle TEXT, manufacturer TEXT); Question 7 (0.5 points) This table has been created (Database Schema) and populated with values listed in RESULTS year 2009 inventoryanhand 12 Database Schema vehicletype 10 rows Id (PK) INTEGER typeofvehicle TEXT manufacturer TEXT year INTEGER inventoryonhand INTEGER 2017 13 7 RESULTS Id typeofvehicle manufacturer 1 Pickup Chevrolet 2 SUV Ford 3 SUV Toyota 4 Sedan Toyota 5 Sedan Ford 8 Coupe Hyundai 7 Pickup Honda 8 Sedan Honda 9 SUV Hyundai 10 Pickup Ford 2015 2014 2017 8 10 8 2010 2015 7 2017 23 2013 2017 16 Which of the following commands would result in a value of 23 (twenty three) being displayed? SELECT MIN(inventoryonhand) FROM vehicletype: SELECI MAXlinventoryonhand) FROM vehicletype: Question 8 (0.5 points) This table has been created (Database Schema) and populated with values listed in RESULTS. year 2009 inventoryonhand 12 Database Schema vehicletype 10 rows 10 PK) INTEGER typeofvehicle TEXT manufacturer TEXT year INTEGER inventoryonhand INTEGER 13 7 00 RESULTS Id typeofvehicle manufacturer 1 Pickup Chevrolet 2 SUV Ford 3 SUV Toyota 4 Sedan Toyota 5 Sedan Ford 0 Coupe Hyundai 7 Pickup Honda 8 Sedan Honda 9 SUV Hyundai 10 Pickup Ford 10 2017 2015 2014 2017 2010 2015 2017 2013 2017 8 7 23 6 16 Which of the following commands would result in a value of 11 (eleven) being displayed? SELECT AVG(inventoryonhand) FROM vehicletype: SELECT COUNT(nventoryonhand) FROM vehicletype: Question 9 (0.5 points) Assuming that a table has been correctly constructed with the command CREATE TABLE vehicletype (carid INTEGER PRIMARY KEY, typeofvehicle TEXT, manufacturer TEXT, INTEGER, inventoryonhand INTEGER); and populated with at least 25 rows, which of the following is NOT a valid aggregate function: SELECT MIN(inventoryonhand) FROM vehicletype: SELECT MAX(inventoryonhand) FROM vehicletype SELECT AVG(inventoryonhand) FROM vehicletype: SELECT SUM(inventoryonhand) FROM vehicletype: Question 10 (0.5 points) Assuming that a table has been correctly constructed with the command CREATE TABLE vehicletype (carid INTEGER PRIMARY KEY, typeofvehicle TEXT, manufacturer INTEGER, inventoryonhand INTEGER); which of the following is a valid aggregate function: SELECT typeofvehicle FROM vehicletype ORDER BY year, SELECT SUM (inventoryonhand) FROM manufacturer. SELECT MIN(year) FROM vehicletype
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
