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 / lova raju allumalla

select count(stud_name),course_name from student s,course c
where s.course_id = c.course_id group by course_name
/

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a primary key and a clustered index?

526


What are the different datatypes available in PL/SQL?

572


What does count (*) mean in sql?

1097


what is top in tsql? : Transact sql

551


How to sort the rows in sql.

605






Where is pl sql used?

523


What is Difference Between Unique and Primary Key Constraints?

609


Is sql a backend language?

629


How do you optimize a query?

540


Can we edit a view in sql?

555


Is sql workbench free?

538


What does subquery mean in sql?

544


What are the types of operators available in sql?

554


What is rank function in sql?

534


What is composite primary key in sql?

524