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

How many types of indexes are there in sql?

932


Is truncate ddl or dml?

942


How does a self join work?

984


What is relationship? How many types of relationship are there?

1068


what are the drivers in mysql? : Sql dba

981


what is a cursor? : Sql dba

972


What is the difference between the implicit and explicit cursors?

990


what are the nonstandard string types? : Sql dba

1078


How to get each name only once from an employee table?

1059


what does the t-sql command ident_incr does? : Transact sql

1009


Is stored procedure faster than query?

913


What do you mean by field in sql?

1033


What is ttitle and btitle?

1006


What is pessimistic concurrency control? : Transact sql

1023


Which nosql database is best?

914