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
What is the difference between sql, mysql and sql server?
What is the difference between microsoft access and sql server?
Can you have more than one key in a database?
what are rollup and cube in t-sql? : Transact sql
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...
What is the purpose of the primary key?
What are the different types of triggers?
Explain the the update statement in sql?
What is the usage of sql functions?
What is a pl/sql block?
Explain alias in sql?
what are the advantages of using stored procedures? : Sql dba
what is the use of friend function? : Sql dba
What is sql stand for?
What is not null in sql?