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 / lova raju allumalla

select count(stud_name),course_name from student s,course c
where s.course_id = c.course_id group by course_name
/

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why indexing is needed?

512


explain the difference between delete , truncate and drop commands? : Sql dba

546


what is the difference between union and union all? : Sql dba

542


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

745


What is inner join in sql?

584






What are the string functions in sql?

523


How will you distinguish a global variable with a local variable in pl/sql?

618


How to run sql*plus commands in sql developer?

583


Why should I use postgresql?

558


What are some predefined exceptions in pl/sql?

546


Is left join inner or outer?

580


what is column? : Sql dba

566


How do you delete duplicates in sql query using rowid?

532


What are the different types of joins in sql?

579


Can delete statement be rollbacked?

523