0

databases Online Quiz - 112

Description: databases Online Quiz - 112
Number of Questions: 20
Created by:
Tags: databases
Attempted 0/20 Correct 0 Score 0

Structure of the record in the database is called

  1. Data Item

  2. Record Occurence

  3. Record

  4. Record Type


Correct Option: D
  1. Areas

  2. Record Occurence

  3. Record Type

  4. Data Item


Correct Option: B

A "page" can have multiple record-occurences

  1. True

  2. False


Correct Option: A
  1. A view can be created as read only.

  2. A view can be created as a join on two or more tables. AND Insert and delete operations cannot be performed on views using functions

  3. A view cannot have an ORDER BY clause in the SELECT statement.

  4. A view cannot be created with a GROUP BY clause in the SELECT statement.


Correct Option: A,B,C,D
  1. Both tables have NULL values.

  2. You want all unmatched data from one table.

  3. You want all matched data from both tables.

  4. You want all unmatched data from both tables.

  5. One of the tables has more data than the other.


Correct Option: D
  1. TRUNCATE is a DDL command whereas DELETE is a DML command

  2. TRUNCATE is much faster than DELETE

  3. In case of TRUNCATE ,Trigger doesn't get fired.But in DML commands like DELETE .Trigger get fired

  4. All of the above


Correct Option: A

Difference between Truncate and Delete(select multiple answers)

  1. TRUNCATE is a DDL command whereas DELETE is a DML command

  2. TRUNCATE is much faster than DELETE

  3. In case of TRUNCATE ,Trigger doesn't get fired.But in DML commands like DELETE .Trigger get fired

  4. All of the above


Correct Option: A
  1. USER_TAB_PRIVS_MADE

  2. USER_TAB_PRIVS_RECD

  3. USER_COL_PRIVS_MADE

  4. USER_COL_PRIVS_RECD


Correct Option: D
  1. A. ASEC

  2. B. DESC

  3. C. REVERT

  4. D. ASC

  5. Both B and D

  6. Both A and B


Correct Option: E
  1. WHERE

  2. HAVING

  3. RESTRICT

  4. ORDER BY

  5. GROUP BY

  6. Both A and B


Correct Option: B
  1. A. MERGE INTO <> USING <> WHEN MATCHED THEN UPDATE ------ WHEN NOT MATCHED THEN INSERT -------

  2. B. MERGE <> USING <> WHEN MATCHED THEN UPDATE ------ WHEN NOT MATCHED THEN INSERT -------

  3. C. MERGE INTO <> USING <> WHEN EXISTS THEN UPDATE ------

  4. D. MERGE INTO <> USING <> WHEN NOT MATCHED THEN INSERT ------

  5. Both A and D


Correct Option: A

Which two statements about sequences are true?

  1. A. You use a NEXTVAL pseudo column to look at the next possible value that would be generated from a sequence, without actually retrieving the value

  2. B. You use a CURRVAL pseudo column to look at the current value just Generated from a sequence, without affecting the further values to be generated from the sequence.

  3. You use a NEXTVAL pseudo column to obtain the next possible value from a sequence by actually retrieving the value from the sequence

  4. Both A and B


Correct Option: D
  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


Correct Option: D

For which two constraints does the Oracle Server implicitly create a unique index?

  1. NOT NULL and PRIMARY KEY

  2. PRIMARY KEY and UNIQUE key

  3. FOREIGN KEY and PRIMARY KEY

  4. CHECK

  5. UNIQUE


Correct Option: B
  1. ALTER VIEW emp_dept_vu (ADD manager_id NUMBER);

  2. MODIFY VIEW emp_dept_vu (ADD manager_id NUMBER);

  3. ALTER VIEW emp_dept_vu AS SELECT employee_id, employee_name, department_name, manager_id FROM employee e, departments d WHERE e.department_id = d.department_id;

  4. CREATE OR REPLACE VIEW emp_dept_vu AS SELECT employee_id, employee_name, department_name, manager_id FROM employees e, departments d WHERE e.department_id = d.department_id;


Correct Option: D

In ISQL plus how to see errorsof a plsql code

  1. A.SHOW ERRORS

  2. B. Query the USER_ERRORS data dictionary view

  3. Both A and B

  4. None of the above


Correct Option: C
    1. Bit map indexes are used on low-cardinality columns(having low distinct values) 2.B-tree indexes are most effective for high-cardinality data(only for unique columns)
  1. B-tree indexes cannot be used in environments typically have large amounts of data and ad hoc queries

  2. bitmap indexes can be created on partitioned tables

  3. All of the above


Correct Option: D
  1. Indexes

  2. tables

  3. public synonyms

  4. triggers

  5. packages


Correct Option: C
- Hide questions