Answered step by step
Verified Expert Solution
Question
1 Approved Answer
begin{tabular}{|c|l|} hline DNUMBER & DLOCATION hline 1 & Houston hline 4 & Staftord hline 5 & Bellire hline 5 & Sugartand
\begin{tabular}{|c|l|} \hline DNUMBER & DLOCATION \\ \hline 1 & Houston \\ \hline 4 & Staftord \\ \hline 5 & Bellire \\ \hline 5 & Sugartand \\ \hline 5 & Houston \\ \hline \end{tabular} Specify the following queries on the database schema shown in above Figure using the relational algebra discussed in class. 1. Find name of projects controlled by department 5 2. Find the names of male employees that works for 'Research' department 3. List department locations for department "Research" 4. Retrieve the names of employees who work on the 'Computerization' project. 5. Retrieve SSNs of department managers who do not work on any project. 6. Find the names and addresses of employees who work on project located in Stafford. 7. List the last names of employees who have no dependents. 8. Find average salary of employees who works for 'Administration' department 9. For each department number, list the total number of project controlled by the department. 10. For each employee, retrieve employee's name, and the total hours working in projects
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