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 / monalisa.dalbehera

select count(s.student_id),c.cource_name
from student s,course c
where c.course_id=s.course_id
group by c.course_name;

Is This Answer Correct ?    48 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are sequences

1208


What is the difference between nested table and varray?

600


What is the main difference between sql and pl/sql?

647


What are the various restrictions imposed on view in terms of dml?

608


what is dbms? : Sql dba

629






Is pl sql better than sql?

638


How to add new employee details in an employee_details table with the following details

729


Does varchar need length?

612


how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc

3431


What is a temporal data type?

679


How do rank () and dense_rank () differ?

614


Where the sql database files are stored?

591


Can one improve the performance of sql*loader? : aql loader

674


What is interval partition?

626


What is where clause in sql?

639