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 / iamanocp
select c.course_id, count(s.student_id)
from student s, course c
where s.course_id = c.course_id
group by c.course_id;
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Define SQL and state the differences between SQL and other conventional programming Languages?
1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...
how to add a new column to an existing table in mysql? : Sql dba
What does seeding a database mean?
How to assign sql query results to pl sql variables?
how to concatenate two character strings? : Sql dba
What is an example of translating a date into julian format?
explain what is mysql? : Sql dba
Does pl/sql support create command?
List out the acid properties and explain?
What is sql server and ase?
what is schema? : Sql dba
what are the advantages and disadvantages of views in a database? : Sql dba
what is union, minus and interact commands? : Sql dba
How to order siblings in oracle hierarchy queries?