Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the following relational schema for a COMPANY example, write down the relational algebra expressions for each of the following queries 1. Return the name

Using the following relational schema for a COMPANY example, write down the relational algebra expressions for each of the following queries

image text in transcribed

1. Return the name of the projects that are in 'Houston'

2. Return the name of the departments that has a project in 'Houston'

3. The SSN of the employees who (a) do not have any dependents but (b) supervise an employee that works on a project in 'Houston'

EMPLOYEE Fname Minit Lname Ssn Bdate Address Sex Salary Super_ssn Dno DEPARTMENT Dname Dnumber Mgr_ssn Mgr_start_date DEPT_LOCATIONS Dnumber Dlocation PROJECT Pname Pnumber Plocation Dnum WORKS ON Essn Pno Hours DEPENDENT Essn Dependent_name Sex Bdate Relationship

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago