Please note that the author of this document will not responsibility for any plagiarizing you
commit.
1. Which of the following is an aggregate expression that will find the oldest date in the
invoiceDate column?
A) MIN(invoiceDate)
B) MAX(invoiceDate)
C) HIGH(invoiceDate)
D) LOW(invoiceDate)
To find the oldest date in the invoiceDate column, you would use the MIN(invoiceDate) aggregate
function. This function returns the smallest value in a column, which for date columns would be the
earliest date.
2. Which of the following LIMIT clauses will return a maximum of five rows starting with the
eleventh row in the result set?
A) LIMIT 10, <= 5
B) LIMIT 11, <= 5
C) LIMIT 10, 5
D) LIMIT 11, 5
This clause tells SQL to skip the first 10 rows and then return up to 5 rows starting from the 11th row.
3. When coded in a WHERE clause, which search condition will return invoices when
paymentDate isn’t null and invoiceTotal is greater than or equal to 500?
A) paymentDate IS NULL AND invoiceTotal > 500
B) paymentDate IS NOT NULL OR invoiceTotal >= 500
C) NOT (paymentDate IS NULL AND invoiceTotal <= 500)
D) paymentDate IS NOT NULL AND invoiceTotal >= 500
This condition ensures that both criteria are met: paymentDate must not be null and invoiceTotal must
be at least 500.
4. Which of the following is not a comparison operator in a SQL statement?
A) < >
B) !=
C) =
D) >
“=” is an assignment operator used to assign a value to a variable, rather than comparing values.