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 / monalisa.dalbehera

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

Is This Answer Correct ?    48 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is an index?

759


what is the difference difference between procedure and packages

9650


explain commit and rollback in mysql : sql dba

731


What is record variable?

708


What is a system versioned table?

702






how to concatenate two character strings? : Sql dba

744


What is bind reference and how can it be created?

771


What are analytical functions in sql?

730


Can you skip header records while loading? : aql loader

730


What does sql stand for?

703


Is not equal in sql?

753


how to drop an existing view in mysql? : Sql dba

792


What is clustered index in sql?

785


What do you mean by table in sql?

696


Does mysql_real_escape_string prevent sql injection?

691