Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Reformulate your query from Question 1 to use the other outer join type (for example, if you used a LEFT outer join in Exercise 10-1,

Using the following table definitions and data, write a query that returns each customer name along with 

Reformulate your query from Question 1 to use the other outer join type (for example, if you used a LEFT outer join in Exercise 10-1, use a RIGHT outer join this time) such that the results are identical to Question 1.

 

QUESTION 3

Devise a query that will generate the set {1,2,3, ..., 99, 100}. (Hint: use a cross join with at least two FROM clause subqueries.)

 Using the following query as your starting point. Rewrite the query to use a RIGHT JOIN and return the same Using the following query as your starting point. Rewrite the query to use a RIGHT JOIN and return the same 

Using the following table definitions and data, write a query that returns each customer name along with their total payments (these names differ from the textbook because they're the ones in the sakila database): customer Table: | customer_id | name 1 MARY SMITH 4 BARBARA JONES | | ELLA OLIVER I 210 + +---- 3 rows in set (0.30 sec) payment Table: | payment_id | customer_id | amount | 1 1 2.99 1 0.99 | 11 81 4.99 I + 11 41 210 I 3 rows in set (0.02 sec) Include all customers (while the examples filter on last_name and payment_id), even if no payment records exist for that customer.

Step by Step Solution

3.50 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

For the first part of the question regarding the change to a RIGHT OUTER JOIN you can reformulate th... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Databases questions

Question

12-3 How does consumer confidence influence consumer behavior?

Answered: 1 week ago

Question

=+What is the expected value of purchasing a Thursday ticket?

Answered: 1 week ago