¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Oracle SQL2

Brandon Gagon 21 preguntas

Hacer el test

Preguntas del test (21)

  1. 1You need to modify the STUDENTS table to add a primary key on the STUDENT_ID column. The table is currently empty. Which statement accomplishes this task?
    1. AALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY student_id;
    2. BALTER TABLE students MODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
    3. CALTER TABLE students ADD PRIMARY KEY student_id;
    4. DALTER TABLE students ADD CONSTRAINT PRIMARY KEY (student_id);
    5. EALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
  2. 2An entity-relationship diagram shows data modeled into
    (Choose the best answer.)
    1. ATwo-dimensional tables
    2. BHierarchical structures
    3. CObject-oriented structures
    4. DMultidimensional tables
  3. 3Which 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
  4. 4SQL 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.
  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. 6Which three statements/commands would cause a transaction to end?
    (Choose three.)
    1. AROLLBACK
    2. BCREATE
    3. CSELECT
    4. DCOMMIT
    5. ESAVEPOINT
  7. 7What 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;

    (Choose the best answer.)
    1. AWednesday
    2. B31-JAN-2009
    3. CNone of the above
    4. D07-JAN-2009
  8. 8Which 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.
  9. 9Which types of constraint require an index?
    (Choose all that apply.)
    1. ACHECK
    2. BPRIMARY KEY
    3. CUNIQUE
    4. DNOT NULL
  10. 10Which SQL statement will replace the last two characters of last_name with 'XX' in the employees table when executed?
    1. ASELECT REPLACE(last_name, SUBSTR(last_name, LENGTH(last_name)-1), 'XX') new_col FROM employees;
    2. BSELECT REPLACE(SUBSTR(last_name, LENGTH(last_name)-1), 'XX') new_col FROM employees;
    3. CSELECT RTRIM(last_name, SUBSTR(last_name, LENGTH(last_name)-1)) || 'XX' new_col FROM employees;
    4. DSELECT CONCAT(SUBSTR(last_name, 1,LENGTH(last_name)-2), 'XX') new_col FROM employees;

Información

Descripción
Test sobre Oracle SQL2, creado por Brandon Gagon el 09/02/2019.
Idioma
English
Visitas
9
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?