Relational Database conceptsRetrieving data using the SQL SELECT statementRestricting and sorting dataUsing Single-Row Functions to Customize OutputUsing Conversion Functions and Conditional ExpressionsReporting Aggregated Data Using the Group FunctionsDisplaying Data from Multiple TablesUsing Subqueries to Solve QueriesManaging Schema ObjectsManaging Objects with Data Dictionary ViewsManipulating DataUsing the Set OperatorsControlling User AccessManipulating Large Data SetsManaging Data in Different Time Zones
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Examine the ORDER_ITEMS table:
Which two queries return rows for which QUANTITY is a multiple of ten?
Choose two
ASELECT * FROM order_items WHERE quantity / 10 - TRUNC(quantity
BSELECT * FROM order_items WHERE MOD(quantity, 10) - 0;
CSELECT * FROM order_items WHERE FLOOR(quantity / 10) = TRUNC(quantity / 10);
DSELECT * FROM order_items WHERE quantity = TRUNC(quantity, -1);
ESELECT * FROM order_items WHERE quantity = ROUND(quantity, 1);
Which two statements are true regarding the results of using the INTERSECT operator in compound queries?
Choose two
AThe number of columns in each SELECT in the compound query can be different.
BINTERSECT returns rows common to both sides of the compound query.
CINTERSECT ignores NULLs.
DColumns named in each SELECT in the compound query can be different.
EReversing the order of the intersected tables can sometimes affect the output.
Which two statements are true about operator and condition precedence?
Choose two
A|| has a higher order of precedence than + (addition).
B
(addition) has a higher order of precedence than * (multiplication).
CNOT has a higher order of precedence than AND and OR in a condition.
DAND and OR have the same order of precedence in a condition.
EOperators are evaluated before conditions.
Which two of the following queries execute successfully?
Choose two
ASELECT INTERVAL '1' DAY - INTERVAL '1' MINUTE FROM DUAL
BSELECT SYSTIMESTAMP + INTERVAL '1' DAY FROM DUAL;
CSELECT INTERVAL '1' DAY - SYSDATE FROM DUAL;
DSELECT INTERVAL '1' DAY + INTERVAL '1' MONTH FROM DUAL;
ESELECT SYSDATE * INTERVAL '1' DAY FROM DUAL;
Which two object privileges may be limited to a subset of columns in a table?
Choose two
AINDEX
BALTER
CUPDATE
DINSERT
EDELETE
Examine the definition of the EMPLOYEES table:
Examine the following query:
Which line causes an error?
ALine 3
BLine 5
CLine 7
DLine 8
Which two statements about savepoints are correct?
Choose two
AAfter issuing a savepoint, you can roll back to the savepoint name within the current transaction.
BThey make uncommitted updates visible to sessions owned by other users.
CYou can commit updates done between two savepoints without committing other updates in the current transaction.
DA ROLLBACK TO SAVEPOINT command issued before the start of a transaction results in an error.
EThey make uncommitted updates visible to other sessions owned by the same user.
FAfter issuing a savepoint, you cannot roll back the complete transaction.
Review the following data in the EMPLOYEES table:
Which statement executes successfully?
ASELECT dept_id, INSTR(last_name, ‘A’), SUM(salary) FROM employees GROUP BY dept_id;
BSELECT dept_id, STDDEV(last_name), SUM(salary) FROM employees GROUP BY dept_id;
CSELECT dept_id, LENGTH(last_name), SUM(salary) FROM employees GROUP BY dept_id;
DSELECT dept_id, MAX(last_name), SUM(salary) FROM employees GROUP BY dept_id;
Examine the following statements, executed in one Oracle session:
Which three statements are true?
Choose three
AThere is no row containing pencil.
BThe code for pen is 10.
CThere is no row containing fountain pen.
DThe code for pen is 1.
EThere is no row containing pen.
FThe code for fountain pen is 3.
Which statement is accurate about using functions in WHERE and HAVING clauses?
AUsing aggregate functions in the WHERE clause requires a subquery.
BUsing aggregate functions in the HAVING clause requires a subquery.
CUsing single-row functions in the WHERE clause requires a subquery.
DUsing single-row functions in the HAVING clause requires a subquery.
Which statement about TRUNCATE and DELETE is true?
AFor tables with multiple indexes and triggers DELETE is faster than TRUNCATE.
BFor large tables TRUNCATE is faster than DELETE.
CYou can never TRUNCATE a table if foreign key constraints will be violated.
DYou can never DELETE rows from a table if foreign key constraints will be violated.
Which two of the following queries return the string Hello! We're ready?
Choose two
ASELECT "Hello! We're ready" FROM DUAL;
BSELECT 'Hello! We're ready' FROM DUAL;
CSELECT q'!Hello! We're ready!' FROM DUAL;
DSELECT q'[Hello! We're ready]' FROM DUAL;
ESELECT 'Hello! We're ready’ ESCAPE '' FROM DUAL;
Which three actions can be performed only by using system privileges?
Choose three
AQuery any table in a database.
BExecute a procedure in another schema.
CLog in to a database instance.
DAccess flat files, which are stored in an operating system directory, via the UTL_FILE package.
EUse the WITH GRANT OPTION clause.
The PRODUCT_INFORMATION table includes a UNIT_PRICE column with the data type NUMBER(8,2).
Evaluate the following SQL statement:
SELECT TO_CHAR(unit_price, '$9,999') FROM product_information;
Which two statements are correct about the output?
Choose two
AA row whose UNIT_PRICE column contains the value 10235.95 will be displayed as $1,0236.
BA row whose UNIT_PRICE column contains the value 1023.95 will be displayed as $1,024.
CA row whose UNIT_PRICE column contains the value 10235.95 will be displayed as $1,023.
DA row whose UNIT_PRICE column contains the value 10235.95 will be displayed as #######.
EA row whose UNIT_PRICE column contains the value 1023.99 will be displayed as $1,023.
Review this partial query:
Review this output:
Which GROUP BY clause must be added for the query to return the results shown?
AGROUP BY ch.channel_type, ROLLUP(t.month, co.country_code);
BGROUP BY ch.channel_type, t.month, ROLLUP(co.country_code);
CGROUP BY CUBE(ch.channel_type, t.month, co.country_code);
DGROUP BY ch.channel_type, t.month, co.country_code;
Examine the following constraint information:
Which three statements are true?
Choose three
AThe SALARY column must have a value.
BThe DEPTNO column in the EMP table can contain NULLS.
CThe COMMISION column can contain negative values.
DThe DEPTNO column in the EMP table can contain the value 1.
EThe MANAGER column is a foreign key referencing the EMPNO column.
FThe DNAME column has a unique constraint.
The ORDERS table has a primary-key constraint on the ORDER_ID column.
The ORDER_ITEMS table has a foreign-key constraint on the ORDER_ID column that references the primary key of the ORDERS table.
The constraint is defined with ON DELETE CASCADE.
There are rows in the ORDERS table with an ORDER_TOTAL less than 1000.
Which three DELETE statements execute successfully?
Choose three
ADELETE order_id FROM orders WHERE order_total < 1000;
BDELETE orders WHERE order_total < 1000
CDELETE * FROM orders WHERE order_total < 1000;
DDELETE FROM orders;
EDELETE FROM orders WHERE order_total < 1000;
Review the definition of the CUSTOMERS table:
For customers with an income-level value, you want to show the first name and a due amount equal to 5% of their credit limit. Do not display customers whose due amount is null.
Which query should be used?
ASELECT cust_first_name, cust_credit_limit * .05 AS due_amountFROM customers -WHERE cust_income_level IS NOT NULLAND cust_credit_limit IS NOT NULL
Community Discussion