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 a primary key? Explain

736


what is bcp? When does it used? : Sql dba

706


Which certification is best for sql?

724


What is the requirement of self-join?

740


What is database white box testing and black box testing?

852






What is pl sql in oracle?

783


how to use case expression? : Sql dba

733


How do sql databases work?

710


What is basic structure of pl sql?

686


What is the difference between a database and a relational database?

763


Can we call a function containing dml statements in a select query?

722


Explain the difference in execution of triggers and stored procedures?

748


What is a loop in sql?

741


what are myisam tables? : Sql dba

718


How does one use sql*loader to load images, sound clips and documents? : aql loader

883