Help shape GoConqr. What should we add next?

Quiz

Oracle Surprise Bag

Brandon Gagon 12 questions

Take the quiz

Questions in this quiz (12)

  1. 1Which two statements are true about WHERE and HAVING clauses?
    (Choose two)
    1. AA WHERE clause can be used to restrict rows only.
    2. BA WHERE clause CANNOT be used in a query of the query uses a HAVING clause.
    3. CA WHERE clause can be used to restrict both rows and groups.
    4. DA HAVING clause can be used to restrict groups only.
    5. EA HAVING clause CANNOT be used in sub queries.
    6. FA HAVING clause can be used to restrict both rows and groups.
  2. 2What are the distinguishing characteristics of a public synonym rather than a private synonym?
    (Choose two correct answers.)
    1. APublic synonyms can be accessed by name without a schema name qualifier.
    2. BPublic synonyms can have the same names as tables or views.
    3. CPublic synonyms can be selected from without needing any permissions.
    4. DPublic synonyms are always visible to all users.
  3. 3You have a large job that will load many thousands of rows into your ORDERS table. To speed up the loading process, you want to temporarily stop enforcing the foreign key constraint FK_ORDERS.

    Which of the following statements will satisfy your requirement?
    1. AALTER TABLE ORDERS DISABLE FOREIGN KEY FK_ORDERS;
    2. BALTER TABLE ORDERS DISABLE ALL CONSTRAINTS;
    3. CALTER CONSTRAINT FK_ORDERS DISABLE;
    4. DALTER TABLE ORDERS DISABLE CONSTRAINT FK_ORDERS;
  4. 4Examine the structure of the EMPLOYEES table:

    EMPLOYEE_ID NUMBER NOT NULL, Primary Key
    EMP_NAME VARCHAR2(30)
    JOB_ID NUMBER\\
    SAL NUMBER
    MGR_ID NUMBER . References EMPLOYEE_ID column
    DEPARTMENT_ID NUMBER . Foreign key to DEPARTMENT_ID column of the. . DEPARTMENTS table

    You created a sequence called EMP_ID_SEQ in order to populate sequential values for the EMPLOYEE_ID column of the EMPLOYEES table.

    Which two statements regarding the EMP_ID_SEQ sequence are true?
    (Choose two.)
    1. AThe EMP_ID_SEQ sequence is invalidated when you modify the EMPLOYEE_ID column.
    2. BThe EMP_ID_SEQ sequence is not affected by modifications to the EMPLOYEES table.
    3. CYou cannot use the EMP_ID_SEQ sequence to populate the JOB_ID column.
    4. DThe EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEE_ID column.
    5. EAny other column of NUMBER data type in your schema can use the EMP_ID_SEQ sequence.
    6. FThe EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEES table.
  5. 5What will happen if you query the EMP table shown below with the following?

    --------------------------
    EMP Table
    --------------------------
    Column Datatype Length
    --------------------------
    EMPNO NUMBER 4
    ENAME VARCHAR2 30
    SALARY NUMBER 14,2
    COMM NUMBER 10,2
    DEPTNO NUMBER 2
    --------------------------
    SELECT empno, DISTINCT ename, salary
    FROM emp;
    1. ANo values will be displayed because the statement will return an error.
    2. BDISTINCT is not a valid keyword in SQL.
    3. CEMPNO and unique values of the two columns, ENAME and SALARY, are displayed.
    4. DEMPNO, unique values of ENAME, and then SALARY are displayed.
  6. 6Evaluate the SQL statement DROP TABLE DEPT:

    Which four statements are true of the SQL statement?
    (Choose four)
    1. AAll indexes based on the DEPT table are dropped.
    2. BAll data in the table is deleted, but the structure of the table is retained.
    3. CAll data in the table is deleted, and the table structure is also deleted.
    4. DYou cannot roll back this statement.
    5. EAll synonyms based on the DEPT table are deleted.
    6. FAll views based on the DEPT table are deleted.
    7. GAll pending transactions are committed.
  7. 7If an UPDATE or DELETE command has a WHERE clause that gives it a scope of several rows, what will happen if there is an error part way through execution?

    The command is one of several in a multistatement transaction.
    (Choose the best answer.)
    1. AWhatever work the command had done before hitting the error will be rolled back, but work done already by the transaction will remain.
    2. BThe command will stop at the error, and the rows that have been updated or deleted will remain updated or deleted.
    3. CThe command will skip the row that caused the error and continue.
    4. DThe whole transaction will be rolled back.
  8. 8Read the following two statements, and choose the best option.

    1. A HAVING clause should always appear after the GROUP BY clause.
    2. A GROUP BY clause should always appear after the WHERE clause.
    1. AStatement 1 is false, and statement 2 is true.
    2. BStatement 1 is true, and statement 2 is false.
    3. CStatement 1 and 2 are false.
    4. DStatements 1 and 2 are true.
  9. 9Which of the following statements are syntactically correct?
    (Choose all that apply.)
    1. ANone of the above
    2. BSELECT * FROM EMPLOYEES E JOIN DEPARTMENTS D USING (DEPARTMENT_ID);
    3. CSELECT * FROM EMPLOYEES JOIN DEPARTMENTS D USING (D.DEPARTMENT_ID);
    4. DSELECT D.DEPARTMENT_ID FROM EMPLOYEES JOIN DEPARTMENTS D USING (DEPARTMENT_ID);
  10. 10Which statement is true regarding the default behavior of the order by clause?
    1. AOnly those columns that are specified in the select list can be used in the order by clause.
    2. BNumeric values are displayed from the maximum to the minimum value if they have decimal positions.
    3. CIn a character sort, the values are case-sensitive.
    4. DNULL values are not considered at all by the sort operation.

Information

Description
Quiz on Oracle Surprise Bag, created by Brandon Gagon on 07/05/2019.
Language
English
Views
3
Rating
No ratings yet
Rate this quiz
Rate this quiz

More on SELECT Queries

Feedback

What is it about?

What should we add next?