Filters
Question type

Study Flashcards

Which of the following is an example of assigning "o" as a table alias for the ORDERS table in the FROM clause?


A) FROM o orders, c customers
B) FROM o.orders,
C) FROM orders o, customers c
D) customers
E) FROM orders.o, customers.c

Correct Answer

verifed

verified

A join based upon a column from each table containing equivalent data is known as a(n) ____.


A) inequality join
B) outer join
C) equality join
D) all of the above

Correct Answer

verifed

verified

A table alias can have a maximum of ____________________ characters.

Correct Answer

verifed

verified

Which of the following terms refers to a column with equivalent data that exists in two or more tables?


A) common column
B) equiv-column
C) inner columns
D) simple columns

Correct Answer

verifed

verified

An outer join operator can be included in a FROM clause to list all rows from one table that do not have a corresponding row in the other table.

Correct Answer

verifed

verified

The outer join operator can only be used in the ____________________ clause.

Correct Answer

verifed

verified

A cross join between two tables, containing four rows each, will display  eight ‾\underline { \text { eight } } rows in its output. _________________________

Correct Answer

verifed

verified

The MINUS set operator is used to display rows that were uniquely returned by the first query in the set.

Correct Answer

verifed

verified

Which of the following will display all books that were published at least three years before they were ordered?


A) SELECT title
FROM customers NATURAL JOIN orders
NATURAL JOIN orderitems NATURAL JOIN books
WHERE orderdate - pubdate >= 3;
B) SELECT title,
FROM orders o, orderitems oi, books b
WHERE
C) isbn = oi.isbn AND oi.order# = o.order# AND (orderdate-pubdate) /365 >= 3;.
D) isbn = oi.isbn AND oi.order# = o.order# AND orderdate - pubdate >= 3;,
E) SELECT title.
FROM orders o, orderitems oi, books b
WHERE..

Correct Answer

verifed

verified

The ____________________ JOIN keyword can be used to create a Cartesian join.

Correct Answer

verifed

verified

If you are joining four tables in a SELECT statement,  three ‾\underline { \text { three } } joining conditions will be required. _________________________

Correct Answer

verifed

verified

The UNION set operator will not suppress rows that are returned by both queries.

Correct Answer

verifed

verified

The  ON ‾\underline { \text { ON } } clause can be used only if the tables being joined have a common column with the same name. _________________________

Correct Answer

verifed

verified

The JOIN keyword must be used in the  WHERE ‾\underline { \text { WHERE } } clause of a SELECT statement. _________________________

Correct Answer

verifed

verified

A self-join can only be specified in the FROM clause with the use of the JOIN...____________________ keywords.

Correct Answer

verifed

verified

____________________ operators are used to combine the results of multiple queries.

Correct Answer

verifed

verified

   Structure of the ORDERS table     Structure of the CUSTOMERS table -Which of the following SQL statements will list the name of each customer stored in the CUSTOMERS table, and, if the customer has placed an order that is contained in the ORDERS table, the order# of any order each customer has placed? A)  SELECT lastname, firstname, order# FROM customers NATURAL JOIN orders; B)  SELECT lastname, firstname, order# FROM customers c LEFT OUTER JOIN orders o ON C)  SELECT lastname, firstname, order# FROM customers RIGHT OUTER JOIN orders; D) customer# = o.customer#; E)  SELECT lastname, firstname, order# FROM customers JOIN orders USING (customer#) ; Structure of the ORDERS table    Structure of the ORDERS table     Structure of the CUSTOMERS table -Which of the following SQL statements will list the name of each customer stored in the CUSTOMERS table, and, if the customer has placed an order that is contained in the ORDERS table, the order# of any order each customer has placed? A)  SELECT lastname, firstname, order# FROM customers NATURAL JOIN orders; B)  SELECT lastname, firstname, order# FROM customers c LEFT OUTER JOIN orders o ON C)  SELECT lastname, firstname, order# FROM customers RIGHT OUTER JOIN orders; D) customer# = o.customer#; E)  SELECT lastname, firstname, order# FROM customers JOIN orders USING (customer#) ; Structure of the CUSTOMERS table -Which of the following SQL statements will list the name of each customer stored in the CUSTOMERS table, and, if the customer has placed an order that is contained in the ORDERS table, the order# of any order each customer has placed?


A) SELECT lastname, firstname, order#
FROM customers NATURAL JOIN orders;
B) SELECT lastname, firstname, order#
FROM customers c LEFT OUTER JOIN orders o
ON
C) SELECT lastname, firstname, order#
FROM customers RIGHT OUTER JOIN orders;
D) customer# = o.customer#;
E) SELECT lastname, firstname, order#
FROM customers JOIN orders USING (customer#) ;

Correct Answer

verifed

verified

When a self-join is created, each copy of the table must be assigned a table alias.

Correct Answer

verifed

verified

Which of the following keywords is used to create a Cartesian join?


A) OUTER JOIN
B) CROSS JOIN
C) NATURAL JOIN
D) JOIN...USING

Correct Answer

verifed

verified

When two tables that share more than one common column are being joined, the JOIN...____________________ keywords are normally used in the FROM clause to join the tables.

Correct Answer

verifed

verified

Showing 61 - 80 of 131

Related Exams

Show Answer