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

Why do we use joins in sql?

496


Explain the difference between rename and alias?

543


How do you create a unique index?

565


What are sql queries used for?

526


In pl/sql, what is bulk binding, and when/how would it help performance?

526






explain access control lists. : Sql dba

551


Why cross join is used?

622


Why function is used in sql?

512


how can we know the number of days between two given dates using mysql? : Sql dba

539


How many types of indexes are there in sql?

534


what is union, minus and interact commands? : Sql dba

653


How can I speed up sql query?

520


How do you change a value in sql?

547


What is view explain with example?

514


How do you modify a column in sql?

527