GoConqr has a new look! Let us know what you think.

Quiz

Oracle ComeBack

Brandon Gagon 18 questions

Take the quiz

Questions in this quiz (18)

  1. 1Which two statements about the evaluation of clauses in a SELECT statement are true?
    (Choose two.)
    1. AThe Oracle Server will evaluate an ORDER BY clause before a WHERE clause.
    2. BThe Oracle Server will evaluate a GROUP BY clause before a HAVING clause.
    3. CThe Oracle Server will evaluate a WHERE clause before a GROUP BY clause.
    4. DThe Oracle Server will evaluate an ORDER BY clause before a HAVING clause.
    5. EThe Oracle Server will evaluate a HAVING clause before a WHERE clause.
  2. 2What value is returned after executing the following statement? Take note that 01-JAN-2009 occurs on a Thursday.

    SELECT NEXT_DAY('01-JAN-2009','wed') FROM DUAL;
    1. AWednesday
    2. B31-JAN-2009
    3. CNone of the above
    4. D07-JAN-2009
  3. 3Which SQL statement will query the EMPLOYEES table for FIRST_NAME, LAST_NAME, and SALARY of all employees in DEPARTMENT_ID 40 in the alphabetical order of last name?
    1. ASELECT first_name, last_name, salary FROM TABLE employees WHERE department_id IS 40 ORDER BY last_name ASC;
    2. BSELECT first_name last_name salary FROM employees WHERE department_id = 40 ORDER BY last_name ASC;
    3. CSELECT first_name last_name salary FROM employees ORDER BY last_name WHERE department_id = 40;
    4. DSELECT first_name, last_name, salary FROM employees WHERE department_id = 40 ORDER BY last_name;
    5. ESELECT first_name, last_name, salary FROM employees ORDER BY last_name ASC WHERE department_id = 40;
  4. 4Which three statements/commands would cause a transaction to end?
    (Choose three.)
    1. AROLLBACK
    2. BCREATE
    3. CSELECT
    4. DCOMMIT
    5. ESAVEPOINT
  5. 5Which statements are true regarding the WHERE and HAVING clauses in a SELECT statement?
    (Choose all that apply.)
    1. AThe HAVING clause can be used with aggregate functions in subqueries.
    2. BThe aggregate functions and columns used in the HAVING clause must be specified in the SELECT list of the query.
    3. CThe WHERE clause can be used to exclude rows before dividing them into groups.
    4. DThe WHERE clause can be used to exclude rows after dividing them into groups.
    5. EThe WHERE and HAVING clauses can be used in the same statement only if they are applied to different columns in the table.
  6. 6SQL is a set-oriented language. Which of these features is a consequence of this?
    (Choose the best answer.)
    1. AIndividual rows must have a unique identifier.
    2. BOne statement can affect multiple rows.
    3. CSQL statements can be placed within blocks of code in other languages, such as Java and PL/SQL.
    4. DSets of users can be managed in groups.
  7. 7What is true of using group functions on columns that contain NULL values?
    1. AGroup functions on columns cannot be accurately used on columns that contain NULL values.
    2. BGroup functions on columns ignore NULL values.
    3. CGroup functions on columns returning dates include NULL values.
    4. DGroup functions on columns include NULL values in calculations if you use the keyword INC_NULLS.
    5. EGroup functions on columns returning numbers include NULL values.
  8. 8Which actions are allowed on a table that is marked as read-only?
    1. ADropping a table
    2. BTruncating a table
    3. CInserting new data
    4. DDropping a constraint
    5. EDropping an index
  9. 9Which of the following statements will create a primary key for the CITY table with the columns STATE_CD and CITY_CD?
    1. ACREATE CONSTRAINT PK_CITY PRIMARY KEY ON CITY (STATE_CD, CITY_CD);
    2. BALTER TABLE CITY ADD CONSTRAINT PK_CITY PRIMARY KEY (STATE_CD, CITY_CD);
    3. CALTER TABLE CITY ADD PRIMARY KEY (STATE_CD, CITY_CD);
    4. DALTER TABLE CITY ADD PRIMARY KEY CONSTRAINT PK_CITY ON (STATE_CD, CITY_CD);
    5. ECREATE PRIMARY KEY ON CITY (STATE_CD, CITY_CD);
  10. 10You want to display 5 percent of the rows from the sales table for products with the lowest AMOUNT_SOLD and also want to include the rows that have the same AMOUNT_SOLD even if this causes the output to exceed 5 percent of the rows.

    Which query will provide the required result?
    1. ASELECT prod_id, cust_id, amount_sold
      FROM sales
      ORDER BY amount_sold
      FETCH FIRST 5 PERCENT ROWS ONLY;
    2. BSELECT prod_id, cust_id, amount_sold
      FROM sales
      ORDER BY amount_sold
      FETCH FIRST 5 PERCENT ROWS WITH TIES ONLY;
    3. CSELECT prod_id, cust_id, amount_sold
      FROM sales
      ORDER BY amount_sold
      FETCH FIRST 5 PERCENT ROWS ONLY WITH TIES;
    4. DSELECT prod_id, cust_id, amount_sold
      FROM sales
      ORDER BY amount_sold
      FETCH FIRST 5 PERCENT ROWS WITH TIES;

Information

Description
Quiz on Oracle ComeBack, created by Brandon Gagon on 17/04/2019.
Language
English
Views
7
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?