Introduction to SQL
A subquery in an SQL SELECT statement:

can only be used with two tables.
can always be duplicated by a join.
cannot have its results sorted using ORDER BY.
has a distinct form that cannot be duplicated by a join.

ANSWER DOWNLOAD EXAMIANS APP

Introduction to SQL
The wildcard in a WHERE clause is useful when?

An exact match is necessary in a CREATE statement.
An exact match is not possible in a CREATE statement.
An exact match is necessary in a SELECT statement.
An exact match is not possible in a SELECT statement.

ANSWER DOWNLOAD EXAMIANS APP

Introduction to SQL
Which of the following query finds colors of boats reserved by "Dustin"?

SELECT DISTINCT b.color FROM boats b, reserves r, sailors s WHERE s.sname = 'Dustin' AND s.sid = r.sid AND r.bid = b.bid;
SELECT DISTINCT b.color FROM boats b, reserves r, sailors s WHERE s.sname = 'Dustin' AND r.bid = b.bid
SELECT DISTINCT b.color FROM boats b, reserves r, sailors s WHERE s.sname = 'Dustin' AND s.sid = r.sid
SELECT DISTINCT b.color FROM boats b, sailors s WHERE s.sname = 'Dustin' AND s.sid = b.sid

ANSWER DOWNLOAD EXAMIANS APP

Introduction to SQL
The HAVING clause does which of the following?

Acts like a WHERE clause but is used for groups rather than rows.
Acts like a WHERE clause but is used for rows rather than columns.
Acts EXACTLY like a WHERE clause.
Acts like a WHERE clause but is used for columns rather than groups.

ANSWER DOWNLOAD EXAMIANS APP