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 / pradip d

select count(student_name),course_name from student,course
where course.course_id=student.course_id group by course_name;

Is This Answer Correct ?    18 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is composite primary key in sql?

710


Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

781


What is transaction control language (tcl)?

849


What are the benefits of pl sql?

766


Is oracle and sql same?

745






What is pl sql in dbms?

693


How many tables can a sql database have?

710


explain commit and rollback in mysql : sql dba

729


What is pls integer?

779


What is the location of pre_defined_functions.

839


Explain the significance of the & and && operators in pl sql.

748


How is pl sql different from sql?

726


What will you get by the cursor attribute sql%found?

701


How much does sql cost?

734


Do ddl statements need commit?

724