Write a Query First to Alter Table to add a new Column managername to the employee table        Write an Update query using Self-Join and Case When/Then to update the managername for the respective employees in the managername column. Where there is no manager present, then the CASE When/Then should update the text ‘No Manager’ in the managername column. [Hint: Jennifer has no Manager, everyone else has a manager]

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 3RA
icon
Related questions
icon
Concept explainers
Question
  1. Consider the Table: Employee

Write a Query First to Alter Table to add a new Column managername to the employee table 

 

 

 

Write an Update query using Self-Join and Case When/Then to update the managername for the respective employees in the managername column. Where there is no manager present, then the CASE When/Then should update the text ‘No Manager’ in the managername column. [Hint: Jennifer has no Manager, everyone else has a manager]

 

Employee ID
Employee Name
Manager
Salary
1.
John
50000
Mary
1.
15000
Rahul
1.
15000
4
Matthew
40000
5
Joseph
1
15000
6
Jennifer
75000
2.
Transcribed Image Text:Employee ID Employee Name Manager Salary 1. John 50000 Mary 1. 15000 Rahul 1. 15000 4 Matthew 40000 5 Joseph 1 15000 6 Jennifer 75000 2.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage