JOINS AND SUBQUERY

MULTIPLE CHOICE WITH ANSWER

1)

Where can sub queries be used?

Select one or more:

 a. The HAVING clause in the SELECT statement

 b. The WHERE clause in only the SELECT statement

 c. Field names in the SELECT statement.

 d. The WHERE clause in the SELECT as well as all DML statements

 e. The FROM clause in the SELECT statement

 f. The GROUP BY clause in the SELECT statement

2)

Evaluate this SQL statement:

SELECT first_name, commission

FROM employee

WHERE commission =

(SELECTcommission

FROMemployee

WHERE UPPER(first_name) = 'SCOTT')

 

What would cause this statement to fail?

Select one:

 a. The FIRST_NAME values in the database are in lowercase.

 b. Scott has a NULL commission value.

 c. There is no employee with the first name Scott.

 d. Scott has a zero commission value.

 e. There is more than one employee with the first name Scott.

3)

A__________ is  a join condition containing something other than an equality operator

 a.Self join

 b.non equijoin

 c.Outer join

 d.Equi join.

4)

Operators used in single row subquery are _____________

 a.All

 b.In

 c.=

 d.<>

5)

The __________ returns all rows from both the tables.

 a.full outer join

 b.Joins

 c.Right outer join

 d.Left outer join

  • Loginhackers Blogger
  • Contact us via Twitter Loginhackers
  • Contact us via Instagram
  • loginhackers facebook contact id

Free Premium | Spotify premium for free | Grammarly free premium | Netflix free accounts | Netflix mod | Spotify mod | Hotstar mod | Spotify premium mod apk | free amazon prime account