1Z0-007 Exam Questions
196 real 1Z0-007 exam questions with expert-verified answers and explanations. Page 4 of 4.
- Question #156Basic SQL SELECT Statements
Which /SQL*Plus feature can be used to replace values in the WHERE clause?
substitution variablesSQL*Plusdynamic WHERE clauseruntime input - Question #157Restricting and Sorting Data
You want to display the titles of books that meet these criteria: 1. Purchased before January 21, 2001 2. Price is less then $500 or greater than $900 You want to sort the results...
compound conditionsAND OR operatorsORDER BY DESCdate filtering - Question #158Displaying Data from Multiple Tables and Subqueries
Examine the structures of the EMPLOYEES and TAX tables. You need to find the percentage tax applicable for each employee. Which SQL statement would you use?
equijoinmultiple tablesJOIN syntaxnon-key join - Question #159Manipulating Data (DML)
Which are DML statements? (Choose all that apply)
DML statementsMERGEUPDATEDELETE - Question #160Creating and Managing Schema Objects
Mary has a view called EMP_DEPT_LOC_VU that was created based on the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. She granted SELECT privilege to Scott on this view. Which option...
synonymsCREATE SYNONYMview accessobject qualification - Question #161Manipulating Data (DML)
Examine the structure of the EMPLOYEES table: You issue these statements: CREATE table new_emp ( employee_id NUMBER, name VARCHAR2(30)); INSERT INTO new_emp SELECT employee_id , la...
SAVEPOINTROLLBACKtransaction controlnested savepoints - Question #162Basic SQL SELECT Statements
Which two are attributes of iSQL*Plus? (Choose two)
iSQL*Plusbrowser-based interfaceSQL*Plus featuresSQL execution environment - Question #163Creating and Managing Schema Objects
In which scenario would index be most useful?
indexescolumn cardinalityindex optimizationindex usage - Question #164Basic SQL SELECT Statements
Which SQL statement generates the alias Annual Salary for the calculated column SALARY*12?
column aliasesdouble quotesspaces in aliascalculated columns - Question #165Displaying Data from Multiple Tables and Subqueries
Examine the structure of the EMPLOYEES table: What is the correct syntax for an inline view?
inline viewFROM clause subquerysubquery syntaxderived table - Question #166Restricting and Sorting Data
Which clause would you use in a SELECT statement to limit the display to those employees whose salary is greater then 5000?
WHERE clausecomparison operatorsrow filteringSELECT syntax - Question #167Controlling User Access
When should you create a role? (Choose two)
rolesprivilege managementGRANTuser access - Question #168Displaying Data from Multiple Tables and Subqueries
Which three statements about subqueries are true? (Choose three)
single-row subquerymultiple-row subqueryIN operatorsubquery operators - Question #169Manipulating Data (DML)
Examine the structure of the EMPLOYEES table: You need to update the records of employees 103 and 115. The UPDATE statement you specify should update the rows with the values speci...
UPDATE statementWHERE clauseDML syntaxmulti-row update - Question #170Displaying Data from Multiple Tables and Subqueries
In which case would you use a FULL OUTER JOIN?
FULL OUTER JOINouter join typesunmatched rowsjoin comparison - Question #171Controlling User Access
Which two statements accurately describe a role? (Choose two.)
rolesrole characteristicsprivilege assignmentuser-role relationship - Question #172Controlling User Access
What is necessary for your query on an existing view to execute successfully?
SELECT privilegeview accessobject privilegesuser permissions - Question #173Restricting and Sorting Data
The EMP table has these columns: Management wants a list of names of employees who have been with the company for more than five years. Which SQL statement displays the required re...
WHERE clausedate arithmeticSYSDATEfiltering rows - Question #174Manipulating Data (DML)
Examine the data in the EMPLOYEES table. On the EMPLOYEES table, EMPLOYEE_ID is the primary key. MGR_ID is the ID of managers and refers to the EMPLOYEE_ID. The JOB_ID column is a...
DELETE syntaxDML restrictionscolumn specificationNOT NULL - Question #175Restricting and Sorting Data
Evaluate these two SQL statements: SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC; Wha...
ORDER BYcolumn position aliassort orderDESC - Question #176Using Functions (Single-Row, Group, Conversion, Conditional)
You would like to display the system date in the format "Monday, 01 June, 2001". Which SELECT statement should you use?
TO_CHARdate format modelSYSDATEformat masks - Question #177Restricting and Sorting Data
The CUSTOMERS table has these columns: Which statement finds the rows in the CUSTOMERS table that do not have a postal code?
IS NULLNULL handlingWHERE clausefiltering - Question #178Restricting and Sorting Data
The ORDERS table has these columns: The ORDERS table tracks the Order number, the order total, and the customer to whom the Order belongs. Which two statements retrieve orders with...
BETWEEN operatorrange filteringWHERE clausecomparison operators - Question #179Manipulating Data (DML)
Examine the data in the EMPLOYEES and EMP_HIST tables: The EMP_HIST table is updated at the end of every year. The employee ID, name, job ID, and salary of each existing employee a...
MERGE statementWHEN MATCHEDWHEN NOT MATCHEDupsert - Question #180Displaying Data from Multiple Tables and Subqueries
Examine the data of the EMPLOYEES table. EMPLOYEES (EMPLOYEE_ID is the primary key. MGR_ID is the ID of managers and refers to the EMPLOYEE_ID) Evaluate this SQL statement: SELECT...
self-jointable aliasWHERE clauseresult analysis - Question #181Displaying Data from Multiple Tables and Subqueries
Which two statements about subqueries are true? (Choose two.)
subquerysingle-row subquerymulti-table subquerysubquery rules - Question #182Manipulating Data (DML)
You added a PHONE_NUMBER column of NUMBER data type to an existing EMPLOYEES table. The EMPLOYEES table already contains records of 100 employees. Now, you want to enter the phone...
UPDATEDML operationsexisting rowscolumn modification - Question #183Using Functions (Single-Row, Group, Conversion, Conditional)
Which SELECT statement will the result `ello world' from the string `Hello World'?
LOWERTRIMSUBSTRstring functions - Question #184Basic SQL SELECT Statements
Evaluate this SQL statement: SELECT e.employee_id, (.15* e.salary) + (.5 * e.commission_pct) + (s.sales amount * (.35 * e.bonus)) AS CALC_VALUE FROM employees e, sales s WHERE e.em...
operator precedencearithmetic expressionsparenthesesSELECT expressions - Question #185Basic SQL SELECT Statements
From SQL*Plus, you issue this SELECT statement: SELECT * From orders; You use this statement to retrieve data from a data table for __________. (Choose all that apply)
SELECT statementDML purposedata retrievalSQL*Plus - Question #186Creating and Managing Schema Objects
You 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?
ALTER TABLEPRIMARY KEY constraintconstraint syntaxDDL - Question #187Restricting and Sorting Data
The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) The registrar requested a report listing the students' grade point averages (GPA...
ORDER BYDESCsort orderGPA report - Question #188Creating and Managing Schema Objects
Which describes the default behavior when you create a table?
CREATE TABLEschema ownershipdefault schemaDDL - Question #189Using Functions (Single-Row, Group, Conversion, Conditional)
Which four are attributes of single row functions? (Choose four.)
single-row functionsfunction attributesargumentsreturn values - Question #190Creating and Managing Schema Objects
You need to create a table named ORDERS that contain four columns: 1. an ORDER_ID column of number data type 2. a CUSTOMER_ID column of number data type 3. an ORDER_STATUS column t...
CREATE TABLEDEFAULT clauseSYSDATE defaultDDL - Question #191Manipulating Data (DML)
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) Which three statements insert a row into the table? (Cho...
INSERT syntaxcolumn listNULL valuesprimary key - Question #192Controlling User Access
The user Sue issues this SQL statement: GRANT SELECT ON sue.EMP TO alice WITH GRANT OPTION; The user Alice issues this SQL statement: GRANT SELECT ON sue.EMP TO reena WITH GRANT OP...
REVOKEGRANT OPTIONprivilege cascadeobject privileges - Question #193Restricting and Sorting Data
The EMPLOYEES table contains these columns: EMPLOYEE_ID NUMBER(4) LAST_NAME VARCHAR2 (25) JOB_ID VARCHAR2(10) You want to search for strings that contain 'SA_' in the JOB_ID column...
LIKE operatorESCAPE clausewildcard characterspattern matching - Question #194Basic SQL SELECT Statements
The CUSTOMERS table has these columns: CUSTOMER_ID NUMBER(4) NOT NULL CUSTOMER_NAME VARCHAR2(100) NOT NULL CUSTOMER_ADDRESS VARCHAR2(150) CUSTOMER_PHONE VARCHAR2(20) You need to pr...
string concatenationconcatenation operatorstring literalsSELECT statement - Question #195
What is true about sequences?
- Question #196Using Functions (Single-Row, Group, Conversion, Conditional)
Which two are character manipulation functions? (Choose two.)
character functionsTRIMREPLACEsingle-row functions - Question #197Creating and Managing Schema Objects
Which three statements correctly describe the functions and use of constraints? (Choose three.)
constraintsdata integritytable constraintsreferential integrity - Question #198Displaying Data from Multiple Tables and Subqueries
You define a multiple-row subquery in the WHERE clause of an SQL query with a comparison operator "=". What happens when the main query is executed?
multiple-row subquerycomparison operatorsWHERE clausesubquery errors - Question #199Using Functions (Single-Row, Group, Conversion, Conditional)
You need to calculate the total of all salaries in the accounting department. Which group function should you use?
SUM functiongroup functionsaggregate functions - Question #200Displaying Data from Multiple Tables and Subqueries
What is true about joining tables through an equijoin?
equijointable joinsjoin conditionsmulti-table queries - Question #201Controlling User Access
Scott issues the SQL statements: If Sue needs to select from Scott's DEPT table, which command should she use?
object privilegesSELECT privilegeschema accesscross-schema query