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

select s.stud_name,c.course_name from student s,course c
where s.course_id = c.course_id group by
s.stud_name,c.course_name;

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is the cursor important?

729


Mention what does the hierarchical profiler does?

733


what is the functionality of the function htmlentities? : Sql dba

692


How bulk collect improves performance?

742


How does sql profiler work?

752






What is a parameter query?

820


What are the types of join and explain each?

772


What are the methods of filing?

676


Is t sql a programming language?

760


What is sqlservr exe?

690


what are the security recommendations while using mysql? : Sql dba

768


What are different types of keys?

737


What is the benefit of foreign key?

714


Is json a nosql?

723


What is hibernate and its relation to sql?

787