Consider the relations Courses1. Courses2, Enrollment and Students. Enrollment sid cid 101 Al 102 AS 103 BI 102 Al 102 A2 Coursesl cid ename Courses2 cid name AS Location Classroom L3 L4 LI A2 Algebra AS English Al Calculus | L2 History B2 English BI | L3 | Computing L5 Student(sid, sname, age, level) _(1) Give the results of the following relational Lalgebra expressions: a) Tcid (0 name ="History' OR "Computing (Courses2)) b) Courses1-Courses2 c) CourseslnCourses2 d) Courses1 Enrollment e) Enrollment / Tcid (Courses1)

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
AS English
Location
cid
name
Classroom
English
History
B2
LI
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) Courses 1-Courses2
c) CourseslnCourses2
d) Courses1 AEnrollment
e) Enrollment / Tcid (Courses l)
(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 AS English Location cid name Classroom English History B2 LI 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) Courses 1-Courses2 c) CourseslnCourses2 d) Courses1 AEnrollment e) Enrollment / Tcid (Courses l) (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
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Complex Datatypes
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