Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the following two tables where primary keys are underlined and foreign keys are marked with #: Employee (employeeNo, empName, jobTitle) Project (projectID, projectName, sponsor,

Given the following two tables where primary keys are underlined and foreign keys are marked with #: Employee (employeeNo, empName, jobTitle) Project (projectID, projectName, sponsor, startYear, endYear) WorkedOn (#employeeNo, #projectID, year, month, noHours) a) Express the following queries in Relational Algebra: (i) List names and numbers of employees whose job is entitled "System Analyst". [1 mark] (ii) List all ids of projects that are started in 2015 and sponsored by "Orpic". [1 mark] b) Write the following SQL query in relational algebra:[1 mark] SELECT e.empName, p. projectName FROM Employee e, WorkedOn wo, Project p WHERE e. employeeNo = wo. employeeNo AND p. projectID = wo. projectID;

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

Briefly explain the various types of leadership ?

Answered: 1 week ago

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago

Question

What is meant by organisational theory ?

Answered: 1 week ago