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

what are the differences between char and varchar? : Sql dba

630


how to enter binary numbers in sql statements? : Sql dba

586


What are the types of functions in sql?

666


What is the difference between delete and truncate commands?

586


What is output spooling in sql*plus?

641






What are the two types of periodical indexes?

581


How to use sql statements in pl/sql?

688


Explain alias in sql?

674


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

636


Is a view faster than a stored procedure?

628


What does the file extension accdb stand for?

637


Is a foreign key always unique?

605


How do you update sql?

614


What is difference between procedure and trigger?

603


What is java sql connection?

601