Quiz
Total Tester
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (14)
1Which of the following are not valid DML statements?
- AINSERT
- BTRUNCATE
- CMERGE
- DDELETE
- ECOMMIT
2Which of the following queries result in a Cartesian product?
- Aselect product_name from customers natural join orders natural join product;
- Bselect product_name from customers cross join products using (product_id) cross join orders using (order_id)
- Cselect product_name from customers natural join products
- Dselect product_name from customers join orders using (customer_id) join products using (product_id)
3Which of these statements, if any, CANNOT be reversed with a ROLLBACK?
- ADELETE
- BINSERT
- CMERGE
- DTRUNCATE
- EUPDATE
- FAll these statements can be rolled back, if not committed
4Which of these do not represent a valid type of column constraint?
- AFOREIGN KEY
- BPRIMARY KEY
- CNOT NULL
- DUNIQUE
- ECHECK
- FNOVALIDATE
5Which of these queries will give an error?
- ASELECT last_name, first_name FROM employees ORDER BY hire_date;
- BSELECT last_name, first_name FROM employees ORDER BY 2;
- CSELECT last_name last, first_name first FROM employees ORDER BY last;
- DA, B, and C will all run successfully
6If you create a table without specifying a schema, where will it be created?
- AIn your current schema
- Bin the PUBLIC schema
- CIn the SYS schema
- DIt will be created as a nonschema object
7This compound query uses four set operators, without any parentheses to force an order of precedence:
SELECT last_name from employees
UNION
SELECT last_name from contractors
MINUS
SELECT last_name from black_list
INTERSECT
SELECT last_name from europeans
The intention is to return a list made up of all employees, plus all contractors who are not blacklisted, and then to remove all the people who are not European.
Is this what will happen?- AYes
- BNo. The INTERSECT operator will remove all non-Europeans from the blacklist before the blacklist is applied
- CNo. The MINUS will remove the blacklisted employees, as well as the blacklisted contractors.
- DThe result is not predictable. In the absence of parentheses to control operator precedence, the query optimizer could develop different execution plans depending on circumstances.
8Which DML command can affect rows in more than one table with a single statment?
- ADELETE
- BINSERT
- CTRUNCATE
- DUPDATE
9Within a schema, objects within the same namespace cannot have the same name. If you already created a table in your schema called EXAMPLE, which of the following commands will succeed? (CHOOSE TWO)
- ACREATE INDEX EXAMPLE
- BCREATE PROCEDURE EXAMPLE
- CCREATE SEQUENCE EXAMPLE
- DCREATE VIEW EXAMPLE
10Which of these statements will terminate a transaction?
- AROLLBACK TO SAVEPOINT savepoint_name;
- BCREATE VIEW viewname AS select_statement;
- CGRANT SELECT ON table_name TO username
- DTRUNCATE TABLE table_name
11Which statements accurately describe SQL functions?
- ASingle-row functions always return one value
- BSingle-row numeric functions always return numeric results
- CSingle-row character functions always return character results
- DSingle-row date functions always return date results
12Which of these commands may be reversed in a session using the ROLLBACK command?
- ATRUNCATE
- BINSERT
- CDROP
- DCREATE
- EDELETE
- FSAVEPOINT
13Which of the follow pair of substitutions are valid?
CREATE TABLE &tablename (numcol &coltype)- AINTEGER, NUMBER
- BFLOATING, VARCHAR2(20
- CVARCHAR1, CHAR
- DSTRING, VARCHAR2
14For which data types can the group functions MAX and MIN be used?
- ACLOB
- BDATE
- CLONG
- DNUMBER
- EVARCHAR2
Information
- Description
- Quiz on Total Tester, created by Brandon Gagon on 28/05/2019.
- Author
- Brandon Gagon
- Language
- English
- Views
- 0
- Rating
- No ratings yet Rate this quiz