Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a SQL query, which shows a list of all employees last name, their department names and their department city where that department is located

image text in transcribed

Write a SQL query, which shows a list of all employees last name, their department names and their department city where that department is located from the employees table. If an employee does not belong to a department, then their department number should show as N/A and their department city should show up as No City info Found. MAKE SURE you have all the employees displayed including the employees who do not have a department.

Oracle SQL Developer File Edit View N Connections Columns Data TMC COUNTRIES Act CUSTOMER COLUMN DEPARTMENTS 1 EMPLOYEE DEPARTMENT ID 2 FIRST NAN E DEPARTMENT NAME 3 LAST NAM MANAGER ID LOCATION ID 4 EMAIL DOCNO 5 PHONE NU EMPLOYEES 6 HIRE DAT EMPLOYEE ID 7 JOB ID FIRST NAME 8 SALARY LAST NAME 9 COMMISSI EMAIL 10 MANAGER PHONE NUMBER HIRE DATE 11 DEPARTMEI E JOB ID EE SALARY COMMISSION PCT MANAGER ID DEPARTMENT ID INVENTORY IEEE ITEM Reports

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

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago