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

Which join is default?

709


What is procedure and function in sql?

742


What are its different types of dbms?

714


Show how functions and procedures are called in a pl/sql block.

766


Enlist some predefined exceptions?

797






What is the difference between clustered and non-clustered indexes?

798


What is difference between pl and sql?

711


What are the different types of triggers?

774


what is normalization? : Sql dba

737


What is character functions?

744


how many ways to get the current time? : Sql dba

708


How do you define a foreign key?

718


What are character functions?

804


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

884


Which table is left in left join?

715