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 / cm

select s.stud_name,c.course_name from student s,course c
where s.course_id = c.course_id group by
s.stud_name,c.course_name;

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the requirement of self-join?

536


What is meaning of <> in sql?

581


What are the disadvantages of not performing database normalization?

591


What are the features of pl sql?

556


What is sql deadlock?

561






Which is faster view or stored procedure?

498


What is pl sql variable?

502


Explain aggregate functions are available there in sql?

532


What is the use of prepared statement?

533


What are local and global variables and their differences?

580


a table has 2 classifications 1)liabilities 2)earnings this liabitity has 2 elements with 2 input values and the earnings have 2 elements with 2 input values i wrote a query so that my input is liability savings amount1 amount2 xxxx null xxxxxx 0 xxx1 null xxxxx1 0 null yyyy 0 yyyy null yyy1 0 yyy1 my problem is --when i developed a report(d2k) with this data my o/p is liabilities,amount1,savings,amount2 xxxx xxxxxx xxx1 xxxxx1 yyyy yyyy yyy1 yyy1 how could i move this savings,savings values 2 palces up. can any body provide me witha better solution

1769


What is a primary key? Explain

538


When do we use triggers?

581


Can we use update in sql function?

571


What is rename in sql?

545