Question: 1 . What is wrong with this select statement? select number _ 2 from twos union select number _ 3 , word _ 3 from
What is wrong with this select statement?
select number
from twos
union
select number
word
from threes;
Answer:
Goal : Show that a union is similar to an insert statement in that it can add new data to the result table.
Answer:
Goal : 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 afirstname,
alastname,
countblunchid as numberoflunches
from LEMPLOYEES a
inner join LLUNCHES b
on aemployeeid bemployeeid
group by afirstname,
alastname;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
