Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For all the below queries (1-8) write the algebra expressions: 1-Consider the below database schema: Professor(ssn, profname, status) Course(crscode, crsname, credits) Taught(crscode, semester, ssn) Query1)

For all the below queries (1-8) write the algebra expressions:

1-Consider the below database schema:

Professor(ssn, profname, status)

Course(crscode, crsname, credits)

Taught(crscode, semester, ssn)

Query1) Return the ssn of professors who have taught COMP440.

Query2) Return the ssn of professors who have taught COMP440 in Spring 2020 semester.

Query3) Return the ssn of professors who have taught both COMP440 and COMP541.

Query4) Return the codes of courses that have never been taught.

Query5) Return the names of courses that have never been taught.

Query6) Return the names of professors who ever taught COMP440.

Query7) Return the names of full professors who ever taught COMP440.

2- Consider the below database schema: Student(id, name, address, status) Transcript(studid, crscode, semester, grade)

Query8) Return the names of students and the codes of courses which they got grade A.

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

More Books

Students also viewed these Databases questions

Question

Are you a good gift giver?

Answered: 1 week ago

Question

=+5. Who could serve as your champion in the workplace?

Answered: 1 week ago

Question

=+7. What would freedom in the workplace look like for you?

Answered: 1 week ago