Using AP and l_lunches database Using the l_employees, l_departments, l_lunches, l_foods, l_lunch_items, and l_suppliers

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Using AP and l_lunches database Using the l_employees, l_departments, l_lunches, l_foods, l_lunch_items, and l_suppliers

Post by answerhappygod »

Using AP and l_lunches database
Using the l_employees, l_departments, l_lunches, l_foods,
l_lunch_items, and l_suppliers tables
show the employee name, lunch_date, description of food ordered,
quantity, and supplier name
of all the items ordered by employees. Make sure you show all
employees in your results.
[l_lunches database]
This is what I have so far:
select first_name + ' ' + last_name as [Full Name]
department_name, lunch_date, quantity,
description, supplier_name
from l_employees e left join l_departments d on e.dept_code =
d.dept_code
Result should look like this:
Using Ap And L Lunches Database Using The L Employees L Departments L Lunches L Foods L Lunch Items And L Suppliers 1
Using Ap And L Lunches Database Using The L Employees L Departments L Lunches L Foods L Lunch Items And L Suppliers 1 (155.71 KiB) Viewed 31 times
1 Results ET Messages Full Name department_name lunch_date SUSAN BROWN EXECUTIVE 2011-11-16 SUSAN BROWN EXECUTIVE 2011-11-16 SUSAN BROWN EXECUTIVE 2011-11-16 SUSAN BROWN EXECUTIVE 2011-11-25 quantity 1 2 description FRESH SALAD SANDWICH COFFEE FRESH SALAD supplier_name A SOUP PLACE A SOUP PLACE JUST BEVERAGES 2 3 2 4 1 A SOUP PLACE -
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply