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

What is time based sql injection?

492


Can a procedure in a package be overloaded?

549


What is procedure explain with program?

554


how to rename an existing column in a table? : Sql dba

514


what is single byte over head in oracle..?

1874






What are pl/sql packages?

575


What is sql prepared statement?

548


What are the triggers associated with image items?

623


What is a table partition?

602


What is pl sql commands?

560


what are the differences among rownum, rank and dense_rank? : Sql dba

543


How do I run sql?

622


What is implicit cursor in pl sql?

544


What is replication id?

524


how tsql statements can be written and submitted to the database engine? : Transact sql

540