Computer Science · Database Management System
Given the relational schemas: STUDENT (Rollno, Name, courseno) COURSE (courseno, coursename, capacity) where Rollno is the primary key of STUDENT, courseno is the primary key of COURSE, and coursename takes unique values. Which of the following queries find the total number of students enrolled in each course along with its coursename? Query A: SELECT coursename, count() 'total' from STUDENT natural join COURSE group by coursename; Query B: SELECT C.coursename, count() 'total' from STUDENT S, COURSE C where S.courseno = C.courseno group by coursename; Query C: SELECT coursename, count() 'total' from COURSE C where courseno in (SELECT courseno from STUDENT);
- 1A and B only✓
- 2C only
- 3A only
- 4B only
Correct answer
A and B only
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Database Management System?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Database Management System