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 your daily office routine?

1806


explain the options of myisamchk to improve the performance of a table. : Sql dba

541


what is the difference between a web-garden and a web-farm? : Sql dba

554


Why select is used in sql?

514


Is sql port 1433 encrypted?

569






what is 'mysqld'? : Sql dba

540


What is having clause in sql?

521


What is scalar function?

563


What is the difference between union and union all command?

540


how can we destroy the session, how can we unset the variable of a session? : Sql dba

541


Can there be more than one function with a similar name in a pl/sql block?

539


How do I save a sql query?

541


What is difference between joins and union?

525


What are different types of functions in sql?

508


What is a sql profiler?

586