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 / iamanocp

select c.course_id, count(s.student_id)
from student s, course c
where s.course_id = c.course_id
group by c.course_id;

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does sql developer connect to oracle database?

619


Can a foreign key be a duplicate?

596


What is a sql profiler?

669


Is sql a case sensitive language?

623


What program will open a mdb file?

582






Where do we use pl sql?

640


Explain the rollback statement?

671


Can we call a function containing dml statements in a select query?

638


What does select count (*) mean in sql?

633


What is number function in sql?

612


What is lookup table in sql?

694


What are aggregate functions in sql?

744


Which is faster union or join?

589


Is sql database free?

624


What is error ora-12154: tns:could not resolve the connect identifier specified?

694