Sql Interview Questions & Answers: part2



Sql Interview QUESTIONS AND ANSWERS :: part2 : 11 to 15

Following SQL Multiple choice objective type questions and answers will help you in many software compnaies written examinations and inteview 2015 :

11.Aggregate functions can be used in the select list or the_______clause of a select statement or subquery. They cannot be used in a ______ clause.

Where, having
Having, where
Group by, having
Group by, where

12.Select emp_name from department where dept_name like ’ _____ Computer Science’; Which one of the following has to be added into the blank to select the dept_name which has Computer Science as its ending string ?

%
_
||
$

13.Which of the following is a aggregate function ?

Average
Sum
With
Minimum

14.Select instructor.* from instructor, teaches where instructor.ID= teaches.ID; This query does which of the following operation?

All attributes of instructor and teaches are selected
All attributes of instructor are selected on the given condition
All attributes of teaches are selected on given condition
Only the some attributes from instructed and teaches are selected

More Sql Interview QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Innovation distinguishes between a leader and a follower.-Steve Jobs