B3. Consider the following Student table and write the appropriate relational algebra query for each of the questions below: [4 marks] studentID firstNAME lastNAME AGE CourseID ITDR2106 City Sur 1001 Mariam Al Alawi 20 1002 Sameera Al Salti 22 ITDR2104 Sohar 1003 Rahma Al Ruzaiqi Al 22 ITDR1101 Muscat 1004 Bushra 23 ITDR2104 Muscat Mammari 1005 Salim Al Busaidi 24 ITSW3101 Muscat a) List the details of students who study the course having the id "ITDR2104" and whose age is below 23? [1]

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 52P
icon
Related questions
icon
Concept explainers
Question
B3. Consider the following Student table and write the appropriate relational algebra query for
each of the questions below: [4 marks]
studentID firstNAME lastNAME AGE
1001
CourseID
City
Sur
Mariam
Al Alawi
20
ITDR2106
1002
Sameera
Al Salti
22
ITDR2104
Sohar
1003
Al Ruzaiqi 22
Al
Rahma
ITDR1101
Muscat
1004
Bushra
23
ITDR2104
Muscat
Mammari
1005
Salim
Al Busaidi
24
ITSW3101
Muscat
a) List the details of students who study the course having the id "ITDR2104" and
whose age is below 23? [1]
b) List the details of students who do not live in the Muscat city? [1.5]
c) List first names and cities of students whose age is between 20 and 24 years.
[1.5]
Transcribed Image Text:B3. Consider the following Student table and write the appropriate relational algebra query for each of the questions below: [4 marks] studentID firstNAME lastNAME AGE 1001 CourseID City Sur Mariam Al Alawi 20 ITDR2106 1002 Sameera Al Salti 22 ITDR2104 Sohar 1003 Al Ruzaiqi 22 Al Rahma ITDR1101 Muscat 1004 Bushra 23 ITDR2104 Muscat Mammari 1005 Salim Al Busaidi 24 ITSW3101 Muscat a) List the details of students who study the course having the id "ITDR2104" and whose age is below 23? [1] b) List the details of students who do not live in the Muscat city? [1.5] c) List first names and cities of students whose age is between 20 and 24 years. [1.5]
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
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.
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
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning