Examine these two queries and their output:
SELECT deptno, dname FROM dept;
SELECT ename, job, deptno FROM emp ORDER BY deptno;
Now examine this query:
SELECT ename, dname
FROM emp CROSS JOIN dept WHERE job = 'MANAGER'
AND dept.deptno IN (10, 20) ;
Examine the description of EMPLOYEES table:
Which three queries return all rows for which SALARY+COMMISSION is greate than 20000?
Which two statements are true about Entity Relationships?
Examine this SQL statement:
SELECT cust_id, cus_last_name "Last Name"
FROM customers
WHERE country_id = 10
UNION
SELECT cust_id CUST_NO, cust_last_name
FROM customers
WHERE country_id = 30
Identify three ORDER BY clauses, any one of which can complete the query successfully.
Examine the data in the CUST NAME column of the CUSTOMERS table:
CUST_NAME
------------------------------
Renske Ladwig
Jason Mallin
Samuel McCain
Allan MCEwen
Irene Mikkilineni
Julia Nayer
You want to display the CUST_NAME values where the last name starts with Mc or MC. Which two WHERE clauses give the required result?
Which three actions can you perform by using the ORACLE DATAPUMP access driver?
Examine the description of the PRODUCT_STATUS table:
The STATUS column contains the values 'IN STOCK' or 'OUT OF STOCK' for each row
Which two queries will execute successfully?
Which two are SQL features?
Examine the description of the ENPLOYES table:
Which query requires explicit data type conversion?
Examine the data in the COLORS table:
Examine the data in the BRICKS table:
Which two queries return all the rows from COLORS?
Which two statements are true about the results of using the intersect operator in compound queries?
Viev the Exhibit and examine the structure of the PRODUCT INFORMATION and INVENTORIEStables.
You have a requirement from the supplies department to give a list containing PRODUCT _ID,SUPPLIER ID, and QUANTITY_ON HAND for all the products where in QUANTITY ON HAND is lessthan five.
Which two SQL statements can accomplish the task? (Choose two)
You execute this query:
SELECT TO CHAR (NEXT_DAY(LAST_DAY(SYSDATE),’MON’ ),’ dd“Monday for” fmMonth rrr’) FROM DUAL;
What is the result?
Which three privileges can be restricted to a subset of columns in a table?
Examine the description of the EMPLOYEES table:
NLS_DATE_FORMAT is set to DD-MON-YY.
Which query requires explicit data type conversion?
Which three statements are true about Data Manipulation Language (DML)?
Which two statements are true about an Oracle database?
In which three situations does a new transaction always start?
Examine this data in the EMPLOYERS table:
Which statement will execute successfully?
Examine the description of the EMPLOYEES table:
Which statement will fail?
You create a table named 123.
Which statement runs successfully?
Which two are true about scalar subquery expressions?
You execute this command:
TRUNCATE TABLE depts;
Which two are true?
You execute this command:
ALTER TABLE employees SET UNUSED (department_id);
Which two are true?
Examine this business rule:
Each student can work on multiple projects and each project can have multiple students.
You must design an Entity Relationship(ER) model for optimal data storage and allow for generating reports in this format:
Which two statements are true?
Examine this SQL statement:
DELETE FROM employees e
WHERE EXISTS
(SELECT'dummy'
FROM emp_history
WHERE employee_id = e.employee_id)
Which two are true?
Which three are true about granting object privileges on tables, views, and sequences?
Which two statements are true regarding the UNION ALL operators?
Examine the description of the transactions table:
Which two SQL statements execute successfully?
Examine the description of the PRODUCTS table:
Which three queries use valid expressions?
Examine these statements:
CREATE TABLE alter_test (c1 VARCHAR2(10), c2 NUMBER(10));
INSERT INTO alter_test VALUES ('123', 123);
COMMIT;
Which is true ahout modifyIng the columns in AITER_TEST?
Examine these statements which execute successfully:
ALTER SESSION SET NLS_DATE_FORMAT = ‘DD-MON-YYYY HH24 MI: SS’
ALTER SESSION SET TIME_ ZONE = ‘-5:00’;
SELECT DBTIMEZONE, SYSDATE FROM DUAL
Examine the result:
If LOCALTIMESTAMP was selected at the same time what would it return?
Which three are true about subqueries?
Examine this statement:
Which two things must be changed for it to execute successfully?
Which three statements are true about a self join?
Which three are true about scalar subquery expressions?
Which statements is true about using functions in WHERE and HAVING?
Table ORDER_ITEMS contains columns ORDER_ID, UNIT_PRICE and QUANTITY, of data type NUMBER
Statement 1:
SELECT MAX (unit price*quantity) "Maximum Order FROM order items;
Statement 2:
SELECT MAX (unit price*quantity "Maximum order" FROM order items GROUP BY order id;
Which two statements are true?
Which two statements are true about date/time functions in a session where NLS_DATE_PORMAT is set to DD-MON-YYYY SH24:MI:SS
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, referencing 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?
The SYSDATE function displays the current Oracle Server date as:
21 -MAY-19
You wish to display the date as:
MONDAY, 21 MAY, 201 9
Which statement will do this?
Which two are true about the precedence of opertors and condtions
The PRODUCT_INFORMATION table has a UNIT_PRICE column of data type NUMBER(8, 2).
Evaluate this SQL statement:
SELECT TO_CHAR(unit_price,'$9,999') FROM PRODUCT_INFORMATION;
Which two statements are true about the output?
Which two statements are true about the COUNT function?
The PROD_ID column is the foreign key in the SALES table.Which references the PRODUCTS table.
Similarly,the CUST_ID and TIME_ID columns are Also foreign keys in the SALES table referencing the CUSTOMERS and TIMES tables, respectively.
Evaluate the following CREATE TABLE command:
CREATE TABLE new_sales(prod_id, I cust_id, order_date DEFAULT SYSDATE)
AS SELECT I prod_id,cust_id,time_id FROM sales.
Which statement is true regarding the above command?
Which two statements about INVISIBLE indexes are true?
Which statement is true regarding the SESSION_PRIVS dictionary view?
Which two join conditions in a from clause are non-equijoins?
Which statement fails to execute successfully?
A)
B)
C)
D)
Which three are true about privileges and roles?
Which three statements are true about GLOBAL TEMPORARY TABLES?
Examine the description of the CUSTOMERS table:
Which three statements will do an implicit conversion?
Which two statements execute successfully?
Which two are true about rollbacks?
Examine this list of requirements for a sequence:
1. Name:EMP_SEQ
2. First value returned:1
3. Duplicates are never permitted.
4. Provide values to be inserted into the EMPLOYEES.EMPLOYEE_ID COLUMN.
5. Reduce the chances of gaps in the values.
Which two statements will satisfy these requirements?
Which statement falls to execute successfully?
For each employee in department 90 you want to display:
1. their last name
2. the number of complete weeks they have been employed
The output must be sorted by the number of weeks, starting with the longest serving employee
first.Which statement will accomplish this?
Which two statements are true about the ORDER BY clause?
Which two are true about the USING clause when joining tables?
Which three are true?
You execute this command:
TRUNCATE TABLE dept;
Which two are true?
Which two statements are true about * _ TABLES views?
Examine this query which executes successfully:
SELECT job, deptno FROM emp
UNION ALL
SELECT job, deptno FROM jobs_ history;
What will be the result?
Examine this statement:
SELECT last name
FROM employees
ORDER BY CASE WHEN salary = (SELECT MAX(salary) FROM employees)
THEN ‘A’
ELSE last_ name
END ,last_name DESC;
Which two statements are true?
Which two queries will result in an error?
Examine the description of the PRODUCTS table:
Which two statements execute without errors?
Examine this partial query:
SELECT ch.channel_type, t.month, co.country_code, SUM(s.amount_sold) SALES
FROM sales s, times t, channels ch, countries co
WHERE s.time_ id = t.time id
AND s.country_ id = co. country id
AND s. channel id = ch.channel id
AND ch.channel type IN ('Direct Sales', 'Internet')
AND t.month IN ('2000-09', '2000-10')
AND co.country code IN ('GB', 'US')
Examine this output:
Which GROUP BY clause must be added so the query returns the results shown?
Examine this statement:
SELECT 1 AS id, ' John' AS first name
FROM DUAL
UNION
SELECT 1 , ' John' AS name
FROM DUAL
ORDER BY 1;
What is returned upon execution?
Examine the description of the PRODUCT_ DETAILS table:
Which two statements are true?
Which statements are true regarding primary and foreign key constraints and the effect they can have on table data?
Examine this statement:
Which two statements are true?
The INVOICE table has a QTY_SOLD column of data type NUMBER and an INVOICE_DATE column of data type DATE NLS_DATE_FORMAT is set to DD-MON-RR.
Which two are true about data type conversions involving these columns in query expressions?
Which two statements are true about truncate and delete?
Which three actions can you perform by using the ALTER TABLE command?
The SALES table has columns PROD_ID and QUANTITY_SOLD of data type NUMBER. Which two queries execute successfully?
Which two statements are true about * TABLES views?
Examine the data in the EMPLOYEES table:
Which statement will compute the total annual compensation for each employee?
Which three statements about roles are true?
Which two statements will return the names of the three employees with the lowest salaries?
The STORES table has a column START_ DATE of data type DATE, containing the date the row was inserted.
You only want to display details of rows where START_ DATE is within the last 25 months.
Which WHERE clause can be used?
Which two statements are true about outer Joins?
Which four statements are true about constraints on Oracle tables?
Which three items does a direction of a relationship contain?
Which three statements are true about GLOBAL TEMPORARY TABLES?
Examine this SQL statement:
SELECT cust_id, cust_last_name "Last Name
FROM customers
WHERE countryid=10
UNION
SELECT custid CUSTNO, cust_last_name
FROM customers
WHERE countryid=30
Identify three ORDER BY clauses, any one of which can complete the query successfully.
Which three statements are true about built-in data types?
Examine the description of the PRODCTS table which contains data:
Which two are true?
Examine the description of the CUSTONERS table:
CUSTNO is the PRIMARY KEY.
You must determine if any customers' details have been entered more than once using a different CUSTNO, by listing all duplicate names.
Which two methods can you use to get the required result?
Which two statements are true about * _TABLES views?
In your session, the NLS._DAE_FORMAT is DD- MM- YYYY.There are 86400 seconds in a day.Examine
this result:
DATE
02-JAN-2020
Which statement returns this?
Which two statements are true about a full outer join?
Which two are true about queries using set operators (UNION, UNION ALL, INTERSECT and MINUS)?
Which two statements are true about Oracle synonyms?
BOOK_SEQ is an existing sequence in your schema.
Which two CREATE TABLE commands are valid?
Which three are true about privileges?
Which two statements are true about the results of using the intersect operator in compound queries?
Which three are true about dropping columns from a table?
Which statement executes successfully?