Question: Question 1 (0.5 points) Assuming that a table has been correctly constructed with the command CREATE TABLE vehicletype (carid INTEGER PRIMARY KEY, typeofvehicle TEXT, manufacturer
Question 1 (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,year INTEGER, inventoryonhand INTEGER); and populated with at least 25 rows, which of the following is a valid aggregate function:
Question 1 options:
| SELECT SUM inventoryonhand FROM vehicletype; | |
| SELECT MIN(year) FROM vehicletype; | |
| SELECT MAX(inventoryonhand) FROM typeofvehicle; |
Question 2 (0.5 points)
Which of the following is NOT a valid aggregate function?
Question 2 options:
| SELECT MAX(inventoryonhand) FROM vehicletype; | |
| SELECT * MAX FROM vehicletype; | |
| SELECT AVG(inventoryonhand) FROM vehicletype; | |
| SELECT SUM(inventoryonhand) FROM vehicletype; |
Question 3 (0.5 points)
Saved
This table has been created (Database Schema) and populated with values listed in RESULTS.
| Database Schema vehicletype 10 rows Id (PK) INTEGER typeofvehicle TEXT manufacturer TEXT year INTEGER inventoryonhand INTEGER | RESULTS
|
Which of the following commands would result in a value of 2009 (two thousand nine) being displayed?
Question 3 options:
| SELECT MIN(year) FROM vehicletype; | |
| SELECT MAX(year) FROM vehicletype; | |
| SELECT AVG(inventoryonhand) FROM vehicletype; | |
| SELECT COUNT(YEAR) FROM vehicletype; |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
