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

select course_id,count(*) from student where course_id in
(select course_id From course)
GROUP BY COURSE_ID

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does view store data in sql?

546


Define commit, rollback and savepoint?

586


What is rtm stands for?

591


What is the maximum size of sqlite database?

556


Where do we use pl sql?

561






Explain the components of sql?

600


How do I restart sql?

538


What is parallel hint?

762


List out the acid properties and explain?

571


What is the use of stored procedures?

531


How does postgresql compare to oracle/db2/ms sql server/informix?

583


What do you know by pl/sql cursors?

578


What is trigger in sql and its types?

545


Can we commit in trigger?

556


How to add new employee details in an employee_details table with the following details

661