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 / dinakar
select course_id,count(*) from student where course_id in
(select course_id From course)
GROUP BY COURSE_ID
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Is primary key an index?
How much does a sql dba make? : SQL DBA
Explain the difference between 'between' & 'and' operators in sql
Is sqlite free?
is mysql query is case sensitive? : Sql dba
Explain spool.
what is self-join? : Sql dba
What is the purpose of a sql?
What are the different ways to optimize a sql query?
what is isam? : Sql dba
what is the syntax used for partition in tsql? : Transact sql
What is the purpose of a secondary key?
What will you get by the cursor attribute sql%notfound?
What are all the different types of indexes?
What is sql and its types?