Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started