in Databases edited by
2,094 views
1 vote
1 vote

Consider the set of relations given below and the SQL query that follows:

Students: (Roll_number, Name, Date_of_birth)
Coursed: (Course_number, Course_name, Instructor)
Grades: (Roll_number, Course_number, Grade)
SELECT DISTINCT Name
FROM Students, Courses, Grades
WHERE Students.Roll_number = Grades.Roll_number
                            AND   Courses.Intructor =Sriram
                            AND   Courses.Course_number = Grades.Course_number
                            AND   Grades.Grade = A

Which of the following sets is computed by the above query?

  1. Names of Students who have got an $\textsf{A}$ grade in all courses taught by Sriram
  2. Names of Students who have got an $\textsf{A}$ grade in all courses
  3. Names of Students who have got an $\textsf{A}$ grade in at least one of the courses taught by Sriram
  4. None of the above 
in Databases edited by
by
2.1k views

1 comment

2
2

1 Answer

1 vote
1 vote
course.intsructor = sriram specify the course taught by sriram and other two predicate specify that students can get A grade atleast.
so by these three predicate option C is correct.
Answer:

Related questions