Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2.2 points. Write a relational algebra query that, when executed, results in the name, semester, and section id all instructors that teach CS-190. Do not

image text in transcribed

2.2 points. Write a relational algebra query that, when executed, results in the name, semester, and section id all instructors that teach CS-190. Do not use a join operator. You may use any the following operators, but not necessarily all, in your expression: selection (as well as any of the logical operators for selection), projection, difference, rename, and cartesian product. Screenshot file: problem2.png 3. 2 points. Write a relational algebra query that, when executed, results in the names of instructors along with the the titles of courses that they teach. You may use any the following operators, but not necessarily all, in your expression: selection, projection, natural join, difference, rename. Screenshot file: problem3.png 4. 2 points. Write a relational algebra query that, when executed, results in the name of the students who have taken course sections taught by the instructor with ID 10101. You may use any the following operators, but not necessarily all, in your expression: selection (as well as any of the logical operators for selection), projection, difference, rename, and cartesian product. Screenshot file: problem4.png 5.2 points. Write a relational algebra query that, when executed, results in all possible pairings of instructors names. In other words, the results should look! something like: 11.name 12.name Srinivasan Srinivasan Srinivasan Wu Wu Wu Wu Srinivasan Wu Mozart 2.2 points. Write a relational algebra query that, when executed, results in the name, semester, and section id all instructors that teach CS-190. Do not use a join operator. You may use any the following operators, but not necessarily all, in your expression: selection (as well as any of the logical operators for selection), projection, difference, rename, and cartesian product. Screenshot file: problem2.png 3. 2 points. Write a relational algebra query that, when executed, results in the names of instructors along with the the titles of courses that they teach. You may use any the following operators, but not necessarily all, in your expression: selection, projection, natural join, difference, rename. Screenshot file: problem3.png 4. 2 points. Write a relational algebra query that, when executed, results in the name of the students who have taken course sections taught by the instructor with ID 10101. You may use any the following operators, but not necessarily all, in your expression: selection (as well as any of the logical operators for selection), projection, difference, rename, and cartesian product. Screenshot file: problem4.png 5.2 points. Write a relational algebra query that, when executed, results in all possible pairings of instructors names. In other words, the results should look! something like: 11.name 12.name Srinivasan Srinivasan Srinivasan Wu Wu Wu Wu Srinivasan Wu Mozart

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

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions

Question

How does the EEOC define sexual harassment?

Answered: 1 week ago