SQL and Oracle Database Concepts
Test your knowledge of SQL syntax, database objects, constraints, and Oracle-specific features including joins, MERGE statements, and data types.
Questions
Which type of argument passes a value from a calling environment?
- a) VARCHER2.
- b) BOOLEAN.
- c) OUT.
- d) IN.
All users currently have the INSERT privileges on the PLAYER table. You want only your users to insert into this table using the ADD_PLAYER procedure. Which two actions must you take? (Choose two)
- a) GRANT SELECT ON ADD_PLAYER TO PUBLIC;
- b) GRANT EXECUTE ON ADD_PLAYER TO PUBLIC;
- c) GRANT INSERT ON PLAYER TO PUBLIC;
- d) GRANT EXECUTE, INSERT ON ADD_PLAYER TO PUBLIC;
- e) REVOKE INSERT ON PLAYER FROM PUBLIC;
SQL is a procedural language?
- True
- False
With optimistic locking a user may have to redo their work when a conflict occurs?
- True
- False
The two types of SQL environment are interactive and embedded?
- True
- False
Catch_#22 valid column name?
- True
- False
In a select with a group by clause, a where clause, and a having clause, the where conditions are applied before the having conditions?
- True
- False
Which statement about a table is true?
- A table can have up to 10,000 columns.
- The size of a table does NOT need to be specified
- A table CANNOT be created while users are using the database
- The structure of a table CANNOT be modified while the table is online
Which two data types can be converted to LOBs using an ALTER TABLE…MODIFY command? (Choose two.)
- RAW
- LONG
- VARCHAR
- LONG RAW
ALTER TABLE inventory ENABLE CONSTRAINT inventory_id_pk; Which statement is true?
- The statement will achieve the desired results
- The statement will execute, but will NOT enable the PRIMARY KEY constraint.
- The statement will execute, but will NOT verify that values in the ID column do NOT violate the constraint.
- The statement will return a syntax error.
Which three functions can be used to manipulate character, number, or date column values? (Choose three.)
- CONCAT
- ROUND
- TRUNC
- RPAD
- INSTR
Which two statements are true about constraints? (Choose two.)
- The UNIQUE constraint does not permit a null value for the column.
- A UNIQUE index gets created for columns with PRIMARY KEY and UNIQUE constraints.
- The PRIMARY KEY and FOREIGN KEY constraints create a UNIQUE index
- The NOT NULL constraint ensures that null values are not permitted for the column
Which three are true? (Choose three.)
- A MERGE statement is used to merge the data of one table with data from another.
- A MERGE statement replaces the data of one table with that of another.
- A MERGE statement can be used to insert new rows into a table.
- A MERGE statement can be used to update existing rows in a table.
Which statement describes the ROWID data type?
- binary data up to 4 gigabytes
- character data up to 4 gigabytes
- raw binary data of variable length up to 2 gigabytes
- binary data stored in an external file, up to 4 gigabytes
- a hexadecimal string representing the unique address of a row in its table
Which is a valid CREATE TABLE statement?
- CREATE TABLE EMP9$# AS (empid number(2));
- CREATE TABLE EMP*123 AS (empid number(2));
- CREATE TABLE PACKAGE AS (packid number(2));
- CREATE TABLE 1EMP_TEST AS (empid number(2));
Which three are true regarding the use of outer joins? (Choose three.)
- You cannot use IN operator in a condition that involves an outer join
- You use (+) on both sides of the WHERE condition to perform an outer join
- You use (*) on both sides of the WHERE condition to perform an outer join
- You use an outer join to see only the rows that do not meet the join condition
- In the WHERE condition, you use (+) following the name of the column in the table without matching rows, to perform an outer join
- You cannot link a condition that is involved in an outer join to another condition by using the OR operator.
Which constraint can be defined only at the column level?
- UNIQUE
- NOT NULL
- CHECK
- PRIMARY KEY
Which best describes an inline view?
- a schema object
- a subquery that can contain an ORDER BY clause
- another name for a view that contains group functions
- a subquery that is part of the FROM clause of another query
JSON stands for:
- JVM Object Noation
- Javascript Oreinted Notation
- JavaScript Object Notation
- Java Object Novation
JSON is rival of which technology:
- HTML
- XML
- DHTML
- SAOP