Question: A SELECT statement that includes aggregate functions is often called a / an _ _ _ _ _ _ _ _ _ _ _ _
A SELECT statement that includes aggregate functions is often called aan query.
Question options:
action
summary
none of the above
compound
Question point
SELECT VendorName AS Vendor, InvoiceDate AS Date
FROM Vendors AS c JOIN Invoices AS i
on vVendorIDiVendorID
The name v is known as a
Question options:
table alias
both b and c
placeholder
correlation name
Question point
A full outer join includes rows that satisfy the join condition, plus
Question options:
rows in the right table that dont satisfy the join condition
rows in both tables that dont satisfy the join condition
the Cartesian product of the two tables
rows in the left table that dont satisfy the join condition
Question point
To be in third normal form,
Question options:
each nonkey column must depend only on the primary key
all of the above
the nonkey columns must not contain repeating values
each nonkey column must depend of the entire primary key
Question point
When you code a union that combines two result sets, which of the following is not true?
Question options:
Each result set must have the same number of columns.
The corresponding columns in the result sets must have compatible data types.
The result sets must be derived from different tables.
The result sets may or may not have any duplicate rows.
Question point
A subquery is aan statement thats coded within another SQL statement.
Question options:
ORDER BY
WHERE
FROM
SELECT
Question point
A search condition in the clause is applied before the rows are grouped while a search condition in the clause isnt applied until after the grouping.
Question options:
HAVING, WHERE
WHERE, FROM
WHERE, HAVING
FROM, WHERE
Question point
Expressions coded in the WHERE clause
Question options:
can use aggregate search conditions but cant use nonaggregate search conditions
must refer to columns in the SELECT clause
can use either aggregate search conditions or nonaggregate search conditions
can use nonaggregate search conditions but cant use aggregate search conditions
Question point
SELECT VendorName, InvoiceNumber
FROM Invoices LEFT JOIN Vendors
ON Invoices.VendorID Vendors.VendorID;
If the LEFT keyword is replaced with the FULL keyword, the total number of rows that are returned must equal
Question options:
none of the above
the number of rows in the Invoices table plus the number of rows in the Vendors table
the number of rows in the Invoices table
the number of rows in the Vendors table
Question point
When you use the implicit syntax for coding inner joins, the join conditions are coded in which clause?
Question options:
SELECT
FROM
ORDER BY
WHERE
Question point
By default, all duplicate values are included in the aggregate calculation, unless you specify which keyword?
Question options:
DISTINCT
ORDER BY
AVG
GROUP BY
Question point
SELECT VendorName AS Vendor, InvoiceDate AS Date
FROM Vendors AS c JOIN Invoices AS i
on vVendorIDiVendorID
The column name for the second column in the result set will be
Question options:
VendorName
Date
VendorID
Vendor
Question point
Subqueries can be within other subqueries.
Question options:
nested
grandfathered
restated
joined
Question point
SELECT VendorName, COUNT AS NumberOfInvoices,
MAXInvoiceTotal PaymentTotal CreditTotal AS BalanceDue
FROM Vendors JOIN Invoices ON Vendors.VendorID Invoices.VendorID
WHERE InvoiceTotal PaymentTotal CreditTotal
SELECT AVGInvoiceTotal PaymentTotal CreditTotal
FROM Invoices
GROUP BY VendorName
ORDER BY BalanceDue DESC;
When this query is executed, the result set will contain
Question options:
one row for the invoice with the largest balance due for each vendor
one row for each vendor that shows the largest balance due for any of the vendors invoices, but only if that balance due is larger than the average balance due for all invoices
one row for each invoice that has a larger balance due than the average balance due for all invoices
one row for each invoice for each vendor that has a larger balance due than the average balance due for all invoices
Question point
When you code a union with the INTERSECT keyword to combine two result sets, the union
Question options:
excludes rows from the second result set if they also occur in the first result set
includes all rows that occur in both result sets if the primary keys are the same
excludes rows from the first result set if they also occur in the second result set
includes only rows that occur in both result sets
Question point
In mo
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
