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

Why is sharding used?

726


1) Synonyms 2) Co-related Subquery 3) Different Jobs in Plsql 4) Explain Plan 5) Wrap 6) Query Optimization Technique 7) Bulk Collect 8) Types of index 9) IF primary key is created then the index created ? 10) Foreign Key 11) Exception Handling 12) Difference Between Delete and Trunc 13) Procedure Overloading 14) Grant Revoke 15) Procedure Argument types. 16) Functions. 17) Joins

1327


How do you delete duplicates in sql query using rowid?

720


What is mutating error in pl sql?

750


What is the file extension for sql database?

671






What is a join query?

722


Why is a primary key important?

728


What is a sql*loader control file?

790


Can we insert data in view?

691


What is before and after trigger?

691


Can we insert in sql function?

773


What is a left inner join?

709


Write a sql query to find the names of employees that begin with ‘a’?

743


what is sql? : Sql dba

741


Is the primary key an index?

763