Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 0 / 1 point Which of the following queries creates a Cartesian join? Question options: SELECT title, authorid FROM books, bookauthor; SELECT title,
Question point
Which of the following queries creates a Cartesian join?
Question options:
SELECT title, authorid
FROM books, bookauthor;
SELECT title, name
FROM books
CROSS JOIN publisher;
SELECT title, gift
FROM books
NATURAL JOIN promotion;
all of the above
Question point
Given the following
query:
SELECT title, gift
FROM books CROSS JOIN promotion;
Which of the following queries is equivalent?
Question options:
SELECT title, gift
FROM books NATURAL JOIN promotion;
SELECT title
FROM books INTERSECT
SELECT gift
FROM promotion;
SELECT title
FROM books UNION ALL
SELECT gift
FROM promotion;
all of the above
Question point
Which of the following
queries contains a nonequality join?
Question options:
SELECT title,authorid
FROM books, bookauthor
WHERE books.isbn bookauthor.isbn
AND retail ;
SELECT title, name
FROM books
JOIN publisher
USING pubid;
SELECT title, gift
FROM books, promotion
WHERE retail minretail
AND retail maxretail;
none of the above
Question point
Given the following
query:
SELECT zip, order#
FROM customers NATURAL JOIN orders;
Which of the following queries is equivalent?
Question options:
SELECT zip, order#
FROM customers JOIN orders
WHERE customers.customer# orders.customer#;
SELECT zip, order#
FROM customers, orders
WHERE customers.customer# orders.customer#;
SELECT zip, order#
FROM customers, orders
WHERE customers.customer# orders.customer# ;
none of the above
Question point
Given
the following query:
SELECT lastname, firstname, order# FROM customers LEFT
OUTER JOIN orders
USING customer# ORDER BY customer#;
Which of the following queries returns the same results?
Question options:
SELECT lastname, firstname, order#
FROM customers c
OUTER JOIN orders o
ON ccustomer# ocustomer#
ORDER BY ccustomer#;
SELECT lastname, firstname, order#
FROM orders o
RIGHT OUTER JOIN customers c
ON ccustomer# ocustomer#
ORDER BY ccustomer#
SELECT lastname, firstname, order#
FROM customers c orders o
WHERE ccustomer# ocustomer#
ORDER BY ccustomer#;
none of the above
Question point
Which line in the following SQL statement raises an error?
SELECT name, title
FROM books b publisher p
WHERE books.pubid publisher.pubid
AND
retail OR retailcost ;
Question options:
line
line
line
line
Question point
Which of the following
operators is not allowed in an outer join?
Question options:
AND
OR
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