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

What is materialized view. What are different methods of refresh?

796


how to use case expression? : Sql dba

561


what is the difference between blob and text? : Sql dba

540


How many primary keys can a table have?

540


how to dump a table to a file with 'mysqldump'? : Sql dba

563






What is sql indexing?

565


What is the use of function "module procedure" in pl/sql?

682


What are expressions?

573


What is nosql example?

595


what is the difference between union and union all? : Sql dba

557


What are variables in pl sql?

578


How can use stored procedures in sql?

595


How do you update a table in sql?

524


Differentiate between sga and pga.

680


Are stored procedures faster than dynamic sql?

541