Question: 1 . What is wrong with this select statement? select number _ 2 from twos union select number _ 3 , word _ 3 from

1. What is wrong with this select statement?
select number_2
from twos
union
select number_3,
word_3
from threes;
Answer:
2. Goal 1: Show that a union is similar to an insert statement in that it can add new data to the result table.
Answer:
3. Goal 2: Show a union that uses more than two select statements. The following select statement shows the number of lunches that each employee will attend, but it does not account for Carol Rose or Paula Jacobs because they are not attending any lunches. Modify this statement to show that these two people will not attend any lunches.
select a.first_name,
a.last_name,
count(b.lunch_id) as number_of_lunches
from L_EMPLOYEES a
inner join L_LUNCHES b
on a.employee_id = b.employee_id
group by a.first_name,
a.last_name;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!