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 / guest

select count(student_id),course_name ,student_name
from student s, course c
where s.course_id = c.course_id
group by course_id
order by student_id desc

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are sql * plus commands?

541


Why is stored procedure faster than query?

496


Which are the different types of indexes in sql?

563


How do you delete duplicates in sql query using rowid?

543


What is difference between table and view?

530






What is nvarchar max in sql?

584


How do you update sql?

523


Differentiate between % rowtype and type record.

735


What is the reports view in oracle sql developer?

545


How do I truncate a word?

529


Is nosql relational?

549


how to install mysql? : Sql dba

582


What is sql deadlock?

567


how to start mysql server? : Sql dba

615


What are the different sql languages?

546