Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / neo28

select Course_Id, Course_Name, count(Student_id) from
(
select c.Course_Id, c.Course_Name, s.Student_id
from Student s, Course c
where s.Course_Id(+) = c.Course_Id
) group by Course_Id
order by Course_Id;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is recursive stored procedure?

1095


In pl/sql, what is bulk binding, and when/how would it help performance?

989


What is before and after trigger?

955


What is the example of procedure?

926


Explian rowid, rownum? What are the psoducolumns we have?

997


explain primary keys and auto increment fields in mysql : sql dba

972


What is offset in sql query?

1104


What is the use of index in sql?

1013


Does view contain data?

1024


What are stored procedures used for?

999


What is sql used for?

1117


what are tables and fields? : Sql dba

1044


What is the difference between the repeatable read and serializable isolation levels? : Transact sql

1093


Can instead of triggers be used to fire once for each statement on a view?

960


Can you do multiple joins in sql?

1045