Question 8996 – Compiler-Design
November 17, 2023
Question 12650 – TIFR PHD CS & SS 2020
November 17, 2023
Question 8996 – Compiler-Design
November 17, 2023
Question 12650 – TIFR PHD CS & SS 2020
November 17, 2023

UGC NET Dec-2020 and June-2021 Paper-2

Question 5
Given the following STUDENT-COURSE scheme:
STUDENT(Rollno, Name, courseno)
COURSE (courseno, coursename, capacity),
where Rollno is the primary key of relation STUDENT and courseno is the primary key of relation COURSE. Attribute coursename of COURSE takes unique values only. Which of the following query(ies) will find total number of students enrolled in each course, along with its coursename.
A. SELECT coursename, count(*) ‘total’ from STUDENT natural join COURSE group by coursename;
B. SELECT C.coursename, count(*) ‘total’ from STUDENT S, COURSE C where S.courseno=C.courseno group by coursename;
C. SELECT coursename, count(*) ‘total’ from COURSE C where courseno in (SELECT courseno from STUDENT);
A
A and B only
B
A only
C
B only
D
C only
Correct Answer: A
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x