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 / pradip d

select count(student_name),course_name from student,course
where course.course_id=student.course_id group by course_name;

Is This Answer Correct ?    18 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between stored procedures and application procedures?

574


Can we perform dml in function?

599


What is the difference between cross join and natural join?

570


Is join an inner join?

540


What is pivot in sql?

514






Is it possible to remove child records without removing master table records...the two having pk,fk relationship?

811


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

554


Name three sql operations that perform a sort.

594


Is it possible for a table to have more than one foreign key?

585


what are the advantages of using stored procedures? : Sql dba

622


What are joins in sql?

541


What are the advantages of pl sql?

609


What is the starting oracle error number? What is meant by forward declaration in functions?

544


What is offset in sql query?

598


How many primary keys can a table have?

534