Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using relational algebra operations, construct queries that satisfy provided descriptions. Provide resulting relation (table with tuples) for each query. Database schema and state are provided

image text in transcribed

image text in transcribed

Using relational algebra operations, construct queries that satisfy provided descriptions. Provide resulting relation (table with tuples) for each query. Database schema and state are provided for your reference.

a. Retrieve first name, last name, and date of birth of all female employees with salary less than 43000.

b. Retrieve project names and project locations of all projects that belong to the Research department.

c. Retrieve first name, last name, and salary of all employees who work less than 22 hours on project 2.

d. Retrieve name, date of birth, and relationship of all male dependents of employees who work for department 5.

e. Retrieve first name, last name, and date of birth of employees who manage departments with projects located in Stafford.

EMPIOYEE DEPARTMENT DEPT_LOCATIONS WORKS ON PROJECT DEPENDENT EMPLOYEE \begin{tabular}{|l|l|l|l|l|l|l|l|l|l|} \hline Fname & Minit & Lname & Ssn & Bdate & Address & Sex & Salary & Super_ssn & Dno \\ \hline \end{tabular} DEPARTMENT \begin{tabular}{|l|l|l|l|} \hline Dname & Dnumber & Mgr_ssn & Mgr_start_date \\ \hline \end{tabular} DEPT_LOCATIONS \begin{tabular}{|l|l|} \hline Dnumber & Dlocation \\ \hline \end{tabular} PROJECT \begin{tabular}{|l|l|l|l|} \hline Pname & Pnumber & Plocation & Dnum \\ \hline \end{tabular} WORKS_ON \begin{tabular}{|l|l|l|} \hline Essn & Pno & Hours \\ \hline \end{tabular} DEPENDENT \begin{tabular}{|l|l|l|l|l|} \hline Essn & Dependent_name & Sex & Bdate & Relationship \\ \hline \end{tabular}

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

Students also viewed these Databases questions