Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

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

More Books

Students also viewed these Databases questions

Question

=+b) Which one has more neutral wording? Explain.

Answered: 1 week ago