Computer Science · Database Management Systems
Which of the following statements is correct about the given SQL query? SELECT CourseName, Fees, StartDate, Duration FROM Students, Courses WHERE Students.CourseID = Courses.CourseID GROUP BY BookID
- 1It is an invalid query because non-aggregated columns in the SELECT clause are not included in the GROUP BY clause.✓
- 2It is an invalid query because the JOIN condition must use the ON clause.
- 3It is an invalid query as multiple tables cannot be referenced in the FROM clause without an explicit JOIN keyword.
- 4It is a correctly formed query.
Correct answer
It is an invalid query because non-aggregated columns in the SELECT clause are not included in the GROUP BY clause.
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 Systems?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Database Management Systems