Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In most cases, the join condition of an inner join compares the primary key of one table to the _ _ _ _ _ _
In most cases, the join condition of an inner join compares the primary key of one table to the key of another table.
Question options:
primary
foreign
SELECT
unique
Question point
Expressions coded in the HAVING clause
Question options:
can use aggregate search conditions but cant use nonaggregate search conditions
can use either aggregate search conditions or nonaggregate search conditions
can use nonaggregate search conditions but cant use aggregate search conditions
can refer to any column in the base tables
Question point
What kind of constraint enforces referential integrity between tables?
Question options:
none of the above
both a and b
reference constraint
foreign key constraint
Question point
If you omit both NULL and NOT NULL from the list of column attributes in a CREATE TABLE statement, which is the default setting?
Question options:
This will throw an error
NOT NULL
none of the above
NULL
Question point
In a join, column names only need to be qualified where?
Question options:
when the code is confusing
in outer joins
in inner joins
when the same names are used in both tables
Question point
What kind of constraint limits the values that can be stored in a column?
Question options:
values constraint
integrity constraint
size constraint
check constraint
Question point
The six clauses of the SELECT statement must be coded in the following order:
Question options:
SELECT, FROM, GROUP BY HAVING, WHERE, ORDER BY
SELECT, FROM, WHERE, GROUP BY HAVING, ORDER BY
SELECT, FROM, WHERE, ORDER BY GROUP BY HAVING
SELECT, FROM, ORDER BY WHERE, GROUP BY HAVING
Question point
SELECT VendorName, InvoiceNumber
FROM Invoices LEFT JOIN Vendors
ON Invoices.VendorID Vendors.VendorID;
If the LEFT keyword is replaced with the RIGHT keyword, the total number of rows that are returned must equal
Question options:
the number of rows in the Invoices table
the number of rows in the Vendors table
the number of rows in the Invoices table plus the number of rows in the Vendors table
none of the above
Question point
Which of the statements below best describes the result set returned by this SELECT statement?
SELECT VendorID,
SUMInvoiceTotal PaymentTotal CreditTotal AS Column
FROM Invoices
WHERE InvoiceTotal PaymentTotal CreditTotal
GROUP BY VendorID;
Question options:
The total of paid invoices for each VendorID
The total amount invoiced by each VendorID
The unpaid balance for each invoice
The total unpaid balance due for each VendorID
Question point
Write an aggregate expression to find the latest date in the InvoiceDate column
Question options:
SUMInvoiceDate
COUNTInvoiceDate
MINInvoiceDate
MAXInvoiceDate
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started