Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION Employees on development projects 0 8 0 Ueing the tabletrol conetruct an 5 0 2 query to retrime o list of all employees. For
QUESTION
Employees on development projects
Ueing the tabletrol conetruct an query to retrime o list of all employees. For eoch employee, the query shoule disptay ther fulf narme the name of their deportment. the city where their department is bocated ond the name of any projects thent nontene the word 'Development' in the propect name. If an employee is not associated with amy project or if their project doesthot inctucte "Development" in its narre, the project name should be displayed os wiLi
Provide the SQL statement to achieve this outcome. The output should be ordered in the alphobetical order of LastName and incase of collision of ary same Last Name, sort the output on the basis of First Name.
Tables Schema as Below.
tableEmployeescolumnNamedataTypeEmployeelDintFirstNamevarcharLostNamevarcharDepartmentiDint
tableDepartmentscolumnNamedataTypeDepartmentIDintDepartmentNamevarcharLocationIDintCityvarcharProjectAssignmentscolumnNamedataTypeAssignmentiDintEmployeelDintProjectNamevarchar
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started