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

Quiz

barcos101-200

efraim vallejo 100 questions

Take the quiz

Questions in this quiz (100)

  1. 1Examine this data in the EMPLOYEES tableImage for question 1
    1. ASELECT dept_id, LENGTH (last: name) , SUM(salary) FROM employees GROUP BV dept_id;
    2. BSELECT dept_id, STDDEV(last_name), SUM( salary) FROM employees GROUP BV dept_id;
    3. CSELECT dept_id, MAX (last_name) . SUM(salary) FROM employees GROUP BY dept_id;
    4. DSELECT dept_id( INSTR(last_name, 'A'), SUM (salary) FROM employees GROUP BY dept_id;
  2. 2Examine the structure of the SHIPMENTS table:Image for question 2
    1. ABoth execute successfully and give correct results.
    2. BOnly the first query executes successfully but gives a wrong result.
    3. COnly the first query executes successfully and gives the correct result.
    4. DOnly the second query executes successfully but gives a wrong result.
    5. EOnly the second query executes successfully and gives the correct result.
  3. 3Which two statements are true regarding views? (Choose two.)
    1. AThe WITH CHECK OPTION constraint can be used in a view definition to restrict the columns displayed through the view.
    2. BThe OR REPLACE option is used to change the definition of an existing view without dropping and re-creating it.
    3. CRows cannot be deleted through a view if the view definition contains the DISTINCT keyword.
    4. DRows added through a view are deleted from the table automatically when the view is dropped.
    5. EA simple view in which column aliases have been used cannot be updated.
    6. FA subquery used in a complex view definition cannot contain group functions or joins.
  4. 4Which three actions can you perform only with system privileges?
    1. AQuery any table in a database.
    2. BLog in to a database.
    3. CAccess flat files via a database, which are stored in an operating system directory.
    4. DTruncate a table in another schema.
    5. EExecute a procedure in another schema.
    6. FUse the WITH GRANT OPTION clause
  5. 5View the exhibit and examine the structure of the EMPLOYEES table.


    You want to select all employees having 100 as their MANAGER_ID manages and their manager.

    You want the output in two columns: the first column should have the employee’s manager’s LAST_NAME and the second column should have the employee’s LAST_NAME.

    Which SQL statement would you execute?
    Image for question 5
    1. ASELECT m.last_name "Manager", e.last_name "Employee"FROM employees m JOIN employees eON m.employee_id = e.manager_idWHERE m.manager_id=100;
    2. BSELECT m.last_name "Manager", e.last_name "Employee"FROM employees m JOIN employees eON m.employee_id = e.manager_idWHERE e.manager_id=100;
    3. CSELECT m.last_name "Manager", e.last_name "Employee"FROM employees m JOIN employees eON e.employee_id = m.manager_idWHERE m.manager_id=100;
    4. DSELECT m.last_name "Manager", e.last_name "Employee"FROM employees m JOIN employees eWHERE m.employee_id = e.manager_id AND e.manager_id=100
  6. 6View the exhibit and examine the structure of the PROMOTIONS table.Image for question 6
    1. ASELECT promo_name, promo_begin_date FROM promotionsWHERE promo_begin_date> ALL (SELECT MAX (promo_begin_date)FROM promotions) ANDpromo_category= ‘INTERNET’;
    2. BSELECT promo_name, promo_begin_date FROM promotionsWHERE promo_begin_date IN (SELECT promo_begin_dateFROM promotionsWHERE promo_category= ‘INTERNET’);
    3. CSELECT promo_name, promo_begin_date FROM promotionsWHERE promo_begin_date > ALL (SELECT promo_begin_dateFROM promotionsWHERE promo_category = ‘INTERNET’);
    4. DSELECT promo_name, promo_begin_date FROM promotionsWHERE promo_begin_date> ANY (SELECT promo_begin_dateFROM promotionsWHERE promo_category= ‘INTERNET’);
  7. 7Examine the description of the TRANSACTIONS table:Image for question 7
    1. ASELECT customer_id AS “CUSTOMER-ID”, transaction_date AS DATE, amount + 100 “DUES” FROM transactions;
    2. BSELECT customer_id AS CUSTOMER-ID, transaction_date AS TRANS_DATE, amount + 100 “DUES AMOUNT” FROM transactions;
    3. CSELECT customer_id CUSTID, transaction_date TRANS_DATE, amount +100 DUES FROM transactions;
    4. DSELECT customer_id AS “CUSTOMER-ID”, transaction_date AS “DATE”, amount + 100 DUES FROM transactions;
    5. ESELECT customer_id AS ‘CUSTOMER-ID’, transaction_date AS DATE, amount + 100 ‘DUES’ FROM transactions;
  8. 8View the Exhibit and examine the structure of the ORDERS table.


    Which UPDATE statement is valid?
    Image for question 8
    1. AUPDATE ordersSET order_date = ’12-mar-2007’,order_total IS NULLWHERE order_id = 2455;
    2. BUPDATE ordersSET order_date = ’12-mar-2007’,AND order_total = TO_NUMBER(NULL)WHERE order_id = 2455;
    3. CUPDATE ordersSET order_date = ’12-mar-2007’,order_total = NULLWHERE order_id = 2455;
    4. DUPDATE ordersSET order_date = TO_DATE(’12-mar-2007’,’dd-mon-yyyy’),SET order_total = TO_NUMBER (NULL)WHERE order_id = 2455;
  9. 9Which three statements are true about views in an Oracle Database?
    1. AViews can join tables only if they belong to the same schema.
    2. BA view can be created that refers to a non-existent table in its defining query.
    3. CViews have no object number.
    4. DViews have no segment.
    5. ERows inserted into a table using a view are retained in the table if the view is dropped.
    6. FA SELECT statement cannot contain a WHERE clause when querying a view containing a WHERE clause in its defining query.
  10. 10Evaluate the following query:
    SQL> SELECT TRUNC (ROUND (156.00, -1),-1) FROM DUAL;
    What would be the outcome?
    1. A150
    2. B200
    3. C160
    4. D16
    5. E100

Information

Description
Quiz on barcos101-200, created by efraim vallejo on 25/01/2021.
Language
English
Views
1
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?