(2) Write the following query in Relational Algebra. a) Find the sids of students who have enrolled in course Calculus. b) Find the names of students who have enrolled in .course Calculus. c) Find the names of students who have enrolled at least one course. d) Find the names of students who have enrolled in Calculus or Algebra.

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 18RQ
icon
Related questions
Question
Consider the relations Courses1, Courses2,
Enrollment and Students.
Courses1
Courses2
Enrollment
sid cid
cid ename
Al Calculus
A2 Algebra
A5 English
Location
cid
name
Classroom
English
History
B2
LI
A5
L3
101
Al
L2
L3
BI
L4
102
A5
Computing
L5
103
BI
102
Al
102
A2
Student(sid, sname, age, level)
(1) Give the results of the following relational
_algebra expressions:
a) Ttcid (o
name ="History' OR 'Computing (Courses2))
b) Courses1-Courses2
c) CourseslnCourses2
d) Courses1 AEnrollment
e) Enrollment / Ttcid (Coursesl)
(2) Write the following query in Relational Algebra.
a) Find the sids of students who have enrolled in
course Calculus.
_b) Find the names of students who have enrolled in
course Calculus.
_c) Find the names of students who have enrolled at
least one course.
_d) Find the names of students who have enrolled in
Calculus or Algebra.
Le) Find the sids of students who have enrolled in all
courses (both Courses1 and Courses2).
Transcribed Image Text:Consider the relations Courses1, Courses2, Enrollment and Students. Courses1 Courses2 Enrollment sid cid cid ename Al Calculus A2 Algebra A5 English Location cid name Classroom English History B2 LI A5 L3 101 Al L2 L3 BI L4 102 A5 Computing L5 103 BI 102 Al 102 A2 Student(sid, sname, age, level) (1) Give the results of the following relational _algebra expressions: a) Ttcid (o name ="History' OR 'Computing (Courses2)) b) Courses1-Courses2 c) CourseslnCourses2 d) Courses1 AEnrollment e) Enrollment / Ttcid (Coursesl) (2) Write the following query in Relational Algebra. a) Find the sids of students who have enrolled in course Calculus. _b) Find the names of students who have enrolled in course Calculus. _c) Find the names of students who have enrolled at least one course. _d) Find the names of students who have enrolled in Calculus or Algebra. Le) Find the sids of students who have enrolled in all courses (both Courses1 and Courses2).
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning