Consider Following Tables. Student ( regNo, sName, sCity, sCGPA, sAge) Course ( cCode, cName, credit_hours) Enrollment (regNo, cCode, semester, Grade) Write SQL queries for the following statements. NOTE: you must use “JOINS” query only. i. Display names of all those students who have “A” grades. ii. Display list of all students by name and course name they have enrolled. iii. Display data of all those students who have enrolled at least 10 courses. iv. Display all those students who have not enrolled any course yet. v. Display grade of ‘Ali’ in course ‘CS101’.

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

Consider Following Tables.
Student ( regNo, sName, sCity, sCGPA, sAge)
Course ( cCode, cName, credit_hours)
Enrollment (regNo, cCode, semester, Grade)
Write SQL queries for the following statements.
NOTE: you must use “JOINS” query only.
i. Display names of all those students who have “A” grades.
ii. Display list of all students by name and course name they have enrolled.
iii. Display data of all those students who have enrolled at least 10 courses.
iv. Display all those students who have not enrolled any course yet.
v. Display grade of ‘Ali’ in course ‘CS101’.

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
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