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 sql better than excel?
Is there a 64 bit version of ssms?
What is relationship? How many types of relationship are there?
What are the query optimization techniques?
How do you rename a table in sql?
what is the functionality of the function htmlentities? : Sql dba
What is t-sql? : Transact sql
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?
1) Synonyms 2) Co-related Subquery 3) Different Jobs in Plsql 4) Explain Plan 5) Wrap 6) Query Optimization Technique 7) Bulk Collect 8) Types of index 9) IF primary key is created then the index created ? 10) Foreign Key 11) Exception Handling 12) Difference Between Delete and Trunc 13) Procedure Overloading 14) Grant Revoke 15) Procedure Argument types. 16) Functions. 17) Joins
What is a schema? How is it useful in sql servers?
What is sql clause?
Can we use distinct and group by together?
Why coalesce is used in sql?
What is a temporal data type?
What are tables and fields?