A
B
C
D
10

which of the following displays the unique values of the column?

 SELECT ________ dept_name FROM instructor;

Distinct

10

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?

%

10

Aggregate functions are functions that take a ___________ as input and return a single value.

Collection of values

10

The____condition allows a general predicate over the relations being joined.

on

10

 The ________ clause is used to list the attributes desired in the result of a query.

select

10

SELECT name
FROM instructor
WHERE dept name = ’Physics’
ORDER BY name;

By default, the order by clause lists items in ______ order.

Ascending

10

SELECT __________
FROM instructor
WHERE dept name= ’Comp. Sci.’;

Which of the following should be used to find the mean of the salary ?

Avg(salary)

10

Which of the join operations do not preserve non matched tuples?

Inner join

10

In the given query which of the keyword has to be inserted?

INSERT INTO employee _____ (1002,Joey,2000);

values

10

SELECT *
FROM instructor
ORDER BY salary ____, name ___;

To display the salary from greater to smaller and name in ascending order which of the following options should be used?

Desc, Asc

10

SELECT COUNT (____ ID)
FROM teaches
WHERE semester = ’Spring’ AND YEAR = 2010;

If we do want to eliminate duplicates, we use the keyword ______in the aggregate expression.

Distinct

10

What type of join is needed when you wish to include rows that do not have matching values?

Outer join

10

SELECT name ____ instructor name, course id
FROM instructor, teaches
WHERE instructor.ID= teaches.ID;

Which keyword must be used here to rename the field name?

as

10

In SQL the spaces at the end of the string are removed by _______ function

Trim

10

All aggregate functions except _____ ignore null values in their input collection.

Count(*)

10

How many tables may be included with a join?

multiple

10

SELECT * FROM employee WHERE dept_name="Comp Sci";

In the SQL given above there is an error . Identify the error.

“Comp Sci”

10

 _____ operator is used for appending two strings.

||

10

The phrase “greater than at least one” is represented in SQL by _____

> some

10

Which join refers to join records from the right table that have no matching key in the left table are include in the result set:

right outer join

M
e
n
u