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 / lova raju allumalla

select count(stud_name),course_name from student s,course c
where s.course_id = c.course_id group by course_name
/

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sql built in functions?

598


What is foreign key sql?

656


what is the difference between join and union? : Sql dba

636


What is lexical units in pl sql?

665


Can we debug stored procedure?

620






how to decrement dates by 1 in mysql? : Sql dba

676


What is the use of non clustered index?

612


What are basic techniques of indexing?

932


how to get a list of columns in an existing table? : Sql dba

632


Give the order of sql select?

720


how many ways to get the current time? : Sql dba

613


Can ddl statements be used in pl/sql?

684


What is sql keyword?

657


First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.

1224


What is the difference between microsoft sql and mysql?

610