Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Employee table has the following columns: ID - integer, primary key FirstName - variable-length string LastName - variable-length string ManagerID - integer Write a

The Employee table has the following columns:

  • ID - integer, primary key
  • FirstName - variable-length string
  • LastName - variable-length string
  • ManagerID - integer

Write a SELECT statement to show a list of all employees' first names and their managers' first names. List only employees that have a manager. Order the results by Employee first name. Use aliases to give the result columns distinctly different names, like "Employee" and "Manager".

Hint: Join the Employee table to itself using INNER JOIN.

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

Essentials Of Advanced Financial Accounting

Authors: Richard Baker

1st Edition

0078025648, 9780078025648

More Books

Students also viewed these Accounting questions