0

databases Online Quiz - 187

Description: databases Online Quiz - 187
Number of Questions: 20
Created by:
Tags: databases
Attempted 0/20 Correct 0 Score 0
  1. FIRST()

  2. AVG()

  3. LAST()

  4. COUNT()

  5. None of these


Correct Option: E

SQL scalar functions return a single value, Among this which is Not a scalar functions?

  1. FORMAT()

  2. ROUND()

  3. UCASE()

  4. AVG()


Correct Option: D
  1. Failed to validate subquery

  2. Failed to validate CASE expression

  3. Failed to validate column list

  4. Failed to validate foreign key.


Correct Option: A
  1. Failed to validate IN predicate

  2. Failed to validate HAVING clause

  3. Failed to validate CASE expression

  4. None of these


Correct Option: B
  1. SOCKET WRITE ERROR

  2. SESSION TIMEOUT

  3. SOCKET READ ERROR

  4. HEADER NOT FOUND


Correct Option: C
  1. HEADER TOO LONG

  2. HEADER NOT FOUND

  3. SOCKET READ ERROR

  4. SOCKET WRITE ERROR


Correct Option: D
  1. SESSION TIMEOUT

  2. INVALID SESSION TICKET

  3. SOCKET WRITE ERROR

  4. FAILED TO EXECUTE GRANT COMMAND


Correct Option: A

What is ACID property?

  1. Atomicity,Consistency,Isolation and Durability

  2. Atomicity,Concurrently,Isolation,Durability

  3. Atomicity,Consistency,Incremental,Durability

  4. Atomicity,Concurrently,Incremental,Durability


Correct Option: A

In which scenario would index be most useful?

  1. The indexed column is declared as NOT NULL

  2. The indexed columns are used in the FROM clause

  3. The indexed columns are part of an expression

  4. The indexed column contains a wide range of values


Correct Option: D

Which clause would you use in a SELECT statement to limit the display to those employees whose salary is greater then 5000?

  1. ORDER BY SALARY > 5000

  2. GROUP BY SALARY > 5000

  3. HAVING SALARY > 5000

  4. WHERE SALARY > 5000


Correct Option: D

When should you create a role? (Choose two)

  1. To simplify the process of creating new users using the CREATE USER xxx IDENTIFIED by yyy statement

  2. To grant a group of related privileges to a user

  3. When the number of people using the database is very high

  4. To simplify the process of granting and revoking privileges


Correct Option: C,D

Which four are correct guidelines for naming database tables? (Choose four)

  1. Must begin with either a number or a letter

  2. Must be 1-30 characters long

  3. Should not be an Oracle Server reserved word

  4. Must contain only A-Z, a-z, 0-+, _, *, and #.

  5. Must contain only A-Z, a-z, 0-9, _, $, and #.

  6. Must begin with a letter


Correct Option: B,C,E,F

Which operator can be used with a multiple-row subquery

  1. =

  2. LIKE

  3. BETWEEN

  4. NOT IN

  5. IS

  6. <>


Correct Option: D

You need to perform certain data manipulation operations through a view called EMP_DEPT_VU, which you previously created. You want to look at the definition of the view (the SELECT statement on which the view was create.) How do you obtain the definition of the view

  1. Use the DESCRIBE command in the EMP_DEPT VU view

  2. Use the DEFINE VIEW command on the EMP_DEPT VU view

  3. Use the DESCRIBE VIEW command on the EMP_DEPT VU view

  4. Query the USER_VIEWS data dictionary view to search for the EMP_DEPT_VU view

  5. Query the USER_SOURCE data dictionary view to search for the EMP_DEPT_VU view

  6. Query the USER_OBJECTS data dictionary view to search for the EMP_DEPT_VU view


Correct Option: D

Which three statements correctly describe the functions and use of constraints? (Choose three.)

  1. Constraints provide data independence

  2. Constraints make complex queries easy

  3. Constraints enforce rules at the view level

  4. Constraints enforce rules at the table level

  5. Constraints prevent the deletion of a table if there are dependencies

  6. Constraints prevent the deletion of an index if there are dependencies


Correct Option: C,D,E
  1. The main query executes with the first value returned by the subquery

  2. The main query executes with the last value returned by the subquery

  3. The main query executes with all the values returned by the subquery

  4. The main query fails because the multiple-row subquery cannot be used with the comparison operator

  5. You cannot define a multiple-row subquery in the WHERE clause of a SQL query


Correct Option: D
  1. You can join a maximum of two tables through an equijoin

  2. You can join a maximum of two columns through an equijoin

  3. You specify an equijoin condition in the SELECT or FROM clauses of a SELECT statement

  4. To join two tables through an equijoin, the columns in the join condition must be primary key and foreign key columns.

  5. You can join n tables (all having single column primary keys) in a SQL statement by specifying a minimum of n-1 join conditions.


Correct Option: E
  1. WHERE

  2. HAVING

  3. RESTRICT

  4. GROUP BY

  5. ORDER BY


Correct Option: B
- Hide questions