O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

OCA 1Z0-071 12C - Parte 2

Juan Taborda 150 perguntas 1.443 visualizações

Fazer o quiz

Este quiz tem tempo limite, por isso abre no player de sempre.

Perguntas do quiz (150)

  1. 1Which 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 foreigr constraint.
  2. 2See the Exhibit and examine the structure of the PROMOTIONS table:

    You have to generate a report that displays the promo name and start date for all promos that started after the last promo in the INTERNET category.

    Which query would give you the required output?
    1. ASELECT promo_name, promo_begin_date
      FROM promotions
      WHERE promo_begin_date> ALL
      (SELECT MAX (promo_begin_date)
      FROM promotions)
      AND promo_category= 'INTERNET';
    2. BSELECT promo_name, promo_begin_date
      FROM promotions
      WHERE promo_begin_date IN (SELECT promo_begin_date
      FROM promotions
      WHERE promo_category= 'INTERNET');
    3. CSELECT promo_name, promo_begin_date
      FROM promotions
      WHERE promo_begin_date > ALL
      (SELECT promo_begin_date
      FROM promotions
      WHERE promo_category = 'INTERNET');
    4. DSELECT promo_name, promo_begin_date
      FROM promotions
      WHERE promo_begin_date> ANY (SELECT promo_begin_date
      FROM promotions
      WHERE promo_category= 'INTERNET');
  3. 3Which two statements are true about sequences created in a single instance Oracle database? (Choose two.)
    1. AWhen the MAXVALUE limit for a sequence is reached, it can be increased by using the ALTER SEQUENCE statement.
    2. BDELETE <sequencename> would remove a sequence from the database.
    3. CThe numbers generated by an explicitly defined sequence can only be used to insert data in one table.
    4. DCURRVAL is used to refer to the most recent sequence number that has been generated for a particular sequence.
    5. EWhen a database instance shuts down abnormally, sequence numbers that have been cached but not used are available again when the instance is restarted.
  4. 4Evaluate the following CREATE TABLE command:
    Which statement is true regarding the above SQL statement?
    Imagem da pergunta 4
    1. AIt would execute successfully and only ORD_ITM_IDX index would be created.
    2. BIt would give an error because the USING INDEX clause cannot be used on a composite primary.
    3. CIt would execute successfully and two indexes ORD_ITM_IDX and ORD_ITM_ID PK would be created.
    4. DIt would give an error because the USING INDEX is not permitted in the CREATE TABLE command.
  5. 5Using the CUSTOMERS table, you need to generate a report that shows 50% of each credit amount
    in each income level. The report should NOT show any repeated credit amounts in each income level.
    Which query would give the required result?
    1. ASELECT cust_income_level, DISTINCT cust_credit_limit * 0.50 AS "50% Credit Limit"
      FROM customers;
    2. BSELECT DISTINCT cust_income_level, DISTINCT cust_credit_limit * 0.50 AS "50% Credit Limit"
      FROM customers;
    3. CSELECT DISTINCT cust_income_level ||‘ ‘|| cust_credit_limit * 0.50 AS "50% Credit Limit"
      FROM customers;
    4. DSELECT cust_income_level ||‘ ‘ ||cust_credit_limit * 0.50 AS "50% Credit Limit" FROM customers;
  6. 6Which three statements are true regarding the WHERE and HAVING clauses in a SQL statement?
    1. AWHERE and HAVING clauses cannot be used together in a SQL statement.
    2. BThe HAVING clause conditions can have aggregate functions.
    3. CThe HAVING clause conditions can use aliases for the columns.
    4. DThe WHERE clause is used to exclude rows before the grouping of data.
    5. EThe HAVING clause is used to exclude one or more aggregated results after grouping data.
  7. 7You need to display the date 11-Oct-2007 in words as ‘Eleventh of October, Two Thousand Seven’. Which SQL statement would give the required result?
    1. ASELECT TO_CHAR(’11-oct-2007′, ‘fmDdspth "of" Month, Year’) FROM DUAL;
    2. BSELECT TO_CHAR(TO_DATE(’11-oct-2007′), ‘fmDdspth of month, year’) FROM DUAL;
    3. CSELECT TO_CHAR(TO_DATE(’11-oct-2007′), ‘fmDdthsp "of" Month, Year’) FROM DUAL;
    4. DSELECT TO_DATE(TO_CHAR(’11-oct-2007′,’fmDdspth ”of” Month, Year’)) FROM DUAL;
  8. 8Examine the commands used to create DEPARTMENT_DETAILS and COURSE_DETAILS

    SQL>CREATE TABLE DEPARTMENT_DETAILS
    (DEPARTMENT_ID NUMBER PRIMARY KEY,
    DEPARTMENT_NAME VARCHAR2(50),
    HOD VARCHAR2(50));

    SQL>CREATE TABLE COURSE_DETAILS
    (COURSE_ID NUMBER PRIMARY KEY,
    COURSE_NAME VARCHAR2(50),
    DEPARTMENT_ID NUMBER REFERENCES DEPARTMENT_DETAILS(DEPARTMENT_ID));

    You want to generate a report that shows all course IDs irrespective of whether they have corresponding department IDs or not but no department IDs if they do not have any courses.
    Which SQL statement must you use?
    1. ASELECT course_id, department_id
      FROM department_details d
      RIGHT OUTER JOIN course_details c
      USING(department_id)
    2. BSELECT c.course_id, d.department_id
      FROM course_details c
      RIGHT OUTER JOIN department_details d
      ON (c.department_id=d. department_id);
    3. CSELECT c.course_id, d.department_id
      FROM course_details c
      FULL OUTER JOIN department_details d
      ON (c.department_id=d. department_id);
    4. DSELECT c.course_id, d.department_id
      FROM course_details c
      FULL OUTER JOIN department_details d
      ON (c.department_id <> d. department_id);
  9. 9View the exhibit and examine the structure of the SALES, CUSTOMERS, PRODUCTS and TIMES tables.
    The PROD_ID column is the foreign key in the SALES table referencing the PRODUCTS table.

    The CUST_ID and TIME_ID columns are also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively.

    Examine this command:

    CREATE TABLE new_sales (prod_id, cust_id, order_date DEFAULT SYSDATE) AS SELECT prod_id, cust_id, time_id FROM sales;

    Which statement is true?
    Imagem da pergunta 9
    1. AThe NEW_SALES table would get created and all the FOREIGN KEY constraints defined on the selected columns from the SALES table would be created on the corresponding columns in the NEW_SALES table.
    2. BThe NEW_SALES table would not get created because the column names in the CREATE TABLE command and the SELECT clause do not match.
    3. CThe NEW_SALES table would not get created because the DEFAULT value cannot be specified in the column definition.
    4. DThe NEW_SALES table would get created and all the NOT NULL constraints defined on the selected columns from the SALES table would be created on the corresponding columns in the NEW_SALES table.
  10. 10View the Exhibit and examine the structure of the ORDERS table. The ORDER_ID column is the PRIMARY KEY in the ORDERS table.

    Evaluate the following CREATE TABLE command:

    CREATE TABLE new_orders(ord_id, ord_date DEFAULT SYSDATE, cus_id) AS SELECT order_id.order_date,customer_id FROM orders;

    Which statement is true regarding the above command?
    Imagem da pergunta 10
    1. AThe NEW_ORDERS table would not get created because the DEFAULT value cannot be specified in the column definition.
    2. BThe NEW_ORDERS table would get created and only the NOT NULL constraint defined on the specified columns would be passed to the new table.
    3. CThe NEW_ORDERS table would not get created because the column names in the CREATE TABLE command and the SELECT clause do not match.
    4. DThe NEW_ORDERS table would get created and all the constraints defined on the specified columns in the ORDERS table would be passed to the new table.

Informações

Descrição
examen corregido
Idioma
Español
Visualizações
1.443
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?