Question: In SQL, running on an Oracle database, write a query for each problem that solves the task. Please ensure that it 1) Find for each
In SQL, running on an Oracle database, write a query for each problem that solves the task. Please ensure that it
1) Find for each person how many cars manufactured by Honda or Toyota they own. If a person does not own any such cars, she should still appear in the result with the number of cars reported as 0. Write your query using outer join. Be very careful not to count also the BMW cars a person owns.
2) Write the same query as above, but using a scalar query for counting the Hondas and Toyotas a person owns, without outer join.
Note: The queries listed above should yield the following result shown below. If possible, try to show the output for your queries. Also,


NAME Jenson Button1 Rubens Barrichello 1 Sebastian Vettel 0 Mark Webber Lewis Hamilton 2 Felipe Massa 0 NUM_OF_CARS CD
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
