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 does 0 mean in sql?

1020


what is 'mysqlshow'? : Sql dba

1073


What is keys and its types?

1121


Explain the select statement in sql?

1181


What is 19 null in sql?

1017


Does oracle use sql?

990


How do I install microsoft sql?

1116


What is difference between rank () row_number () and dense_rank () in sql?

1157


How many row comparison operators are used while working with a subquery?

1073


What is procedure and function in sql?

1045


Can we use two order by clause in query?

1015


where are cookies actually stored on the hard disk? : Sql dba

1079


What are types of indexes in sql?

1127


Can we insert data into materialized view?

990


Explain what is a subquery ?

1242