Question: Based on the reference table below, please write a SQL query to show the data from the datable showing all the subordinates below the manager

Based on the reference table below, please write a SQL query to show the data from the datable showing all the subordinates below the manager of 'Vice President of sales' and the person who are reports to the subordinates including the level number of that person. 4 3 Reference table: Employeeld First Name Last Name Title DeptID ManagerlD 1 1 Ken Snchez Chief Executive Officer 16 NULL 2 16 David Bradley Marketing Manager 4 273 3 23 Mary Gibson Marketing Specialist 4 16 273 Brian Welcker Vice President of Sales 3 1 5 274 Stephen Jiang North American Sales Manager 3 273 6 275 Michael Blythe Sales Representative 3 274 7 276 Linda Mitchell Sales Representative 3 274 8 285 Abbas Pacific Sales Manager 3 273 9 286 Lynn Tsoflias Sales Representative 3 285 Table Myemployee 3 3 Syed WWUWW Sample of the results: Employeeld Managerl Title Level 1 273 1 Vice President of Sales 0 2 16 273 Marketing Manager 3 274 273 North American Sales Manager 1 285 273 Pacific Sales Manager 1 5 286 285 Sales Representative 2 6 275 274 Sales Representative 2 7 276 274 Sales Representative 8 23 16 Marketing Specialist 2. 2 3 4 5 09 N N N N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
