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

Quiz

barcos301-400

efraim vallejo 99 questions

Take the quiz

Questions in this quiz (99)

  1. 1Which three statements are true reading subqueries? (Choose three.)
    1. AA Main query can have many subqueries.
    2. BA subquery can have more than one main query.
    3. CThe subquery and main query must retrieve date from the same table.
    4. DThe subquery and main query can retrieve data from different tables.
    5. EOnly one column or expression can be compared between the subquery and main query.
    6. FMultiple columns or expressions can be compared between the subquery and main query.
  2. 2You need to display the first names of all customers from the CUSTOMERS table that contain the character ‘e’ and have the character ‘a’ in the second last position.

    Which query would give the required output?
    1. ASELECT cust_first_nameFROM customersWHERE INSTR(cust_first_name, ‘e’)<>0 ANDSUBSTR(cust_first_name, -2, 1)=’a’;
    2. BSELECT cust_first_nameFROM customersWHERE INSTR(cust_first_name, ‘e’)<>'' ANDSUBSTR(cust_first_name, -2, 1)=’a’;
    3. CSELECT cust_first_nameFROM customersWHERE INSTR(cust_first_name, ‘e’)IS NOT NULL ANDSUBSTR(cust_first_name, 1, -2)=’a’;
    4. DSELECT cust_first_nameFROM customersWHERE INSTR(cust_first_name, ‘e’)<>0 ANDSUBSTR(cust_first_name, LENGTH(cust_first_name), -2)=’a’;
  3. 3Which two statements are true about the rules of precedence for operators? (Choose two.)
    1. AThe concatenation operator | | is always evaluated before addition and subtraction in an expression
    2. BMultiple parentheses can be used to override the default precedence of operators in an expression
    3. CArithmetic operators with equal precedence area evaluated from left to right within an expression
    4. DNULLS influence the precedence of operators in an expression
    5. EThe + binary operator has the highest precedence in an expression in a SQL statement
  4. 4Which statement is true about Data Manipulation Language (DML)?
    1. ADML automatically disables foreign ley constraints when modifying primary key values in the parent table.
    2. BEach DML statement forms a transaction by default.
    3. CA transaction can consist of one or more DML statements.
    4. DDML disables foreign key constraints when deleting primary key values in the parent table, only when the ON DELETE CASCADE option is set for the foreign key constraint.
  5. 5You need to remove from the ORDER_ITEMS table those rows that have an order status of 0 or 1 in the ORDERS table.

    Which two DELETE statements are valid (Choose two.)

    Image for question 5
    1. ADELETE *FROM order_itemsWHERE order_id IN (SELECT order_id)FROM ordersWHERE order_status IN (0,1));
    2. BDELETEFROM (SELECT * FROM order_items I,orders oWHERE i.order_id = o.order_id AND order_status IN (0,1));
    3. CDELETE FROM order_items iWHERE order_id = (SELECT order_id FROM orders oWHERE i.order_id = o.order_id AND order_status IN (0,1));
    4. DDELETEFROM order_itemsWHERE order_id IN (SELECT order_idFROM ordersWHERE orders_status in (0,1));
  6. 6A subquery is called a single-row subquery when .
    1. AThere is only one subquery in the outer query and the inner query returns one or more values
    2. BThe inner query returns a single value to the outer query.
    3. CThe inner query uses an aggregating function and returns one or more values.
    4. DThe inner query returns one or more values and the outer query returns a single value.
  7. 7Which two queries execute successfully? (Choose two.)Image for question 7
    1. AOption A
    2. BOption B
    3. COption C
    4. DOption D
    5. EOption E
  8. 8Examine the data in the CUST_NAME column of the CUSTOMERS table:Image for question 8
    1. AWHERE SUBSTR (cust_name, INSTR (cust_name, ‘’) +1) LIKE ‘Mc%’
    2. BWHERE INITCAP (SUBSTR (cust_name, INSTR(cust_name, ‘’)+1)) IN (‘MC%’, ‘Mc%)
    3. CWHERE UPPER (SUBSTR (cust_name, INSTR(cust_name, ‘’)+1)) LIKE UPPER (‘MC%’)
    4. DWHERE SUBSTR (cust_name, INSTR (cust_name, ‘’) +1) LIKE ‘Mc%’ OR ‘MC%’
    5. EWHERE INITCAP (SUBSTR (cust_name, INSTR(cust_name, ‘’)+1)) LIKE ‘Mc%’
  9. 9Examine this statement:Image for question 9
    1. ASTATUS
    2. BORDER_ID
    3. CPRODUCT_ID
    4. DSERIAL_NO
    5. EORDER_TOTAL
    6. FORDER_DATE
  10. 10Which two statements are true about substitution variables? (Choose two.)
    1. AA substitution variable can be used with any clause in a SELECT statement
    2. BA substitution variable used to prompt for a column name must be enclosed in a single quotation marks
    3. CA substitution variable prefixed with & always prompts only once for a value in a session
    4. DA substitution variable can be used only in a SELECT statement
    5. EA substitution variable used to prompt for a column name must be enclosed in double quotation marks
    6. FA substitution variable prefixed with && prompts only once for a value in a session unless it is set to undefined in the session

Information

Description
Quiz on barcos301-400, created by efraim vallejo on 01/02/2021.
Language
English
Views
0
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?