Table Student has 3 columns,Student_id,Student_Name &
Course_Id. Table Course has 2 columns, Course_Id &
Course_Name.Write a query to listdown all the Courses and
number of student in each course.

Answer Posted / guest

select count(student_id),course_name ,student_name
from student s, course c
where s.course_id = c.course_id
group by course_id
order by student_id desc

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to order siblings in oracle hierarchy queries?

691


Can we create table in function?

660


Is sql a microsoft product?

587


What is the importance of sqlcode and sqlerrm?

969


What is a constraint?

654






What is forward declaration in pl sql?

664


what is acid property in database? : Sql dba

657


what is a primary key? : Sql dba

650


Does truncate require commit?

638


What is sap sql?

631


How do I copy a table in sql?

597


What is the use of desc in sql?

596


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

643


Show the two pl/sql cursor exceptions.

711


Can I learn sql in a week?

662