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

Can we use views in stored procedure?

608


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

578


What is cartesian join in sql?

641


what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

648


Is left join faster than inner join?

732






What is a scalar value in sql?

683


What's the difference between a primary key and a clustered index?

602


What is ttitle and btitle?

674


What does inner join mean?

662


What is index example?

648


Are subqueries faster than joins?

650


How to write pl sql program in mysql command prompt?

603


What is sqlerrd?

616


what is data manipulation language? : Sql dba

623


What is trigger explain with example?

658