1Z0-007 Exam Questions
196 real 1Z0-007 exam questions with expert-verified answers and explanations. Page 2 of 4.
- Question #53Restricting and Sorting Data
Which two statements are true about WHERE and HAVING clauses? (Choose two)
WHERE clauseHAVING clauseGROUP BYrow vs group filtering - Question #54Manipulating Data (DML)
EMPLOYEES and DEPARTMENTS data: On the EMPLOYEES table, EMPLOYEE_ID is the primary key. MGR_ID is the ID managers and refers to the EMPLOYEE_ID. On the DEPARTMENTS table DEPARTMENT...
UPDATE with subqueriesDMLmultiple-row subqueryscalar subquery - Question #55Basic SQL SELECT Statements
Which SQL statement accepts user input for the columns to be displayed, the table name, and WHERE condition?
substitution variablesSQL*Plusampersanddynamic input - Question #56Using Functions (Single-Row, Group, Conversion, Conditional)
Evaluate the SQL statement: SELECT ROUND(45.953, -1), TRUNC(45.936, 2) FROM dual; Which values are displayed?
ROUNDTRUNCnumeric functionsnegative precision - Question #57
The CUSTOMERS table has these columns: The CUSTOMER_ID column is the primary key for the table. You need to determine how dispersed your customer base is. Which expression finds th...
- Question #58Manipulating Data (DML)
Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables: Which DELETE statement is valid?
DELETE syntaxDMLrow removalSQL grammar - Question #59Creating and Managing Schema Objects
Examine the structure of the EMP_DEPT_VU view: Which SQL statement produces an error?
viewsSELECT on viewview query restrictionsaggregation - Question #60Manipulating Data (DML)
You own a table called EMPLOYEES with this table structure: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) HIRE_DATE DATE What happens when you execu...
DELETE without WHEREDMLtable data removaltable structure - Question #61Manipulating Data (DML)
Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables: EMPLOYEES EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) HIRE_DATE DATE NEW_EMPLOYEE...
MERGEupsertDML syntaxMERGE INTO - Question #62Using Functions (Single-Row, Group, Conversion, Conditional)
The EMPLOYEES table contains these columns: EMPLOYEE_ID NUMBER(4) ENAME VARCHAR2 (25) JOB_ID VARCHAR2(10) Which SQL statement will return the ENAME, length of the ENAME, and the nu...
LENGTHINSTRSUBSTRcharacter functions - Question #63Creating and Managing Schema Objects
Which four are valid Oracle constraint types? (Choose four.)
constraint typesPRIMARY KEYUNIQUENOT NULLCHECK - Question #64Creating and Managing Schema Objects
Which SQL statement would you use to remove a view called EMP_DEPT_VU from your schema?
DROP VIEWDDLview managementschema objects - Question #65Basic SQL SELECT Statements
Which is an iSQL*Plus command?
iSQL*PlusSQL*Plus commandsDESCRIBEclient tools - Question #66
Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(30) NOT NULL FIRST_NAME VARCHAR2(30) DEPT_ID NUMBER(2) Which statement produces the num...
- Question #67Displaying Data from Multiple Tables and Subqueries
Top N analysis requires _____ and _____. (Choose two.)
Top-N queryinline viewROWNUMORDER BY - Question #68
Which statement adds a constraint that ensures the CUSTOMER_NAME column of the CUSTOMERS table holds a value?
- Question #69Basic SQL SELECT Statements
Evaluate this SQL statement: SELECT ename, sal, 12*sal+100 FROM emp; The SAL column stores the monthly salary of the employee. Which change must be made to the above syntax to calc...
arithmetic operatorsoperator precedenceparenthesesexpressions - Question #70Controlling User Access
You are the DBA for an academic database. You need to create a role that allows a group of users to modify existing rows in the STUDENT_GRADES table. Which set of statements accomp...
CREATE ROLEGRANT privilegerolesUPDATE privilege - Question #71Controlling User Access
Which object privileges can be granted on a view?
object privilegesviewsINSERT SELECT UPDATE DELETEprivilege types - Question #72Creating and Managing Schema Objects
Examine the SQL statement that creates ORDERS table: CREATE TABLE orders (SER_NO NUMBER UNIQUE, ORDER_ID NUMBER, ORDER_DATE DATE NOT NULL, STATUS VARCHAR2(10) CHECK (status IN ('CR...
auto-created indexesUNIQUE constraintPRIMARY KEYDDL - Question #73Using Functions (Single-Row, Group, Conversion, Conditional)
What is true of using group functions on columns that contain NULL values?
group functionsNULL valuesaggregate functions - Question #74Using Functions (Single-Row, Group, Conversion, Conditional)
The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) Which statement finds the highest grade point average (GPA) per semester?
MAX functionGROUP BYaggregate functionsSQL clause order - Question #75Displaying Data from Multiple Tables and Subqueries
In which four clauses can a subquery be used? (Choose four.)
subqueriesINSERTFROM clauseWHERE clause - Question #76Basic SQL SELECT Statements
Examine this statement: SELECT student_id, gpa FROM student_grades WHERE gpa > &&value; You run the statement once, and when prompted you enter a value of 2.0. A report is produced...
substitution variablesdouble ampersandiSQL*Plusvariable caching - Question #77Using Functions (Single-Row, Group, Conversion, Conditional)
Which SQL statement returns a numeric value?
date arithmeticnumeric return typeSYSDATEdata type conversions - Question #78Creating and Managing Schema Objects
What are two reasons to create synonyms? (Choose two.)
synonymsschema objectsDDLobject naming - Question #79
What is true about updates through a view?
- Question #80Displaying Data from Multiple Tables and Subqueries
You need to write a SQL statement that returns employee name, salary, department ID, and maximum salary earned in the department of the employee for all employees who earn less tha...
inline viewMAX per groupcorrelated subquerymulti-table join - Question #81Restricting and Sorting Data
The CUSTOMERS table has these columns: A promotional sale is being advertised to the customers in France. Which WHERE clause identifies customers that are located in France?
LOWER functionstring comparisonWHERE clausesingle quotes - Question #82Basic SQL SELECT Statements
Which are iSQL*Plus commands? (Choose all that apply.)
iSQL*Plus commandsDESCRIBESQL vs iSQL*PlusSQL*Plus - Question #83Using Functions (Single-Row, Group, Conversion, Conditional)
Examine the description of the CUSTOMERS table: The CUSTOMER_ID column is the primary key for the table. Which statement returns the city address and the number of customers in the...
COUNTGROUP BYWHERE clauseaggregate functions - Question #84Creating and Managing Schema Objects
What does the FORCE option for creating a view do?
CREATE VIEWFORCE optionviewsDDL - Question #85Manipulating Data (DML)
A data manipulation language statement _____.
DMLdata manipulationSQL statement types - Question #86
Evaluate the SQL statement: SELECT LPAD (salary,10,'*') FROM EMP WHERE EMP_ID = 1001; If the employee with the EMP_ID 1001 has a salary of 17000, what is displayed?
- Question #87Controlling User Access
The DBA issues this SQL command: CREATE USER scott IDENTIFIED by tiger; What privileges does the user Scott have at this point?
CREATE USERuser privilegesOracle securityDCL - Question #88
Exhibit: Examine the data in the EMPLOYEES table. Examine the subquery: SELECT last_name FROM employees WHERE salary IN (SELECT MAX(salary) FROM employees GROUP BY department_id);...
- Question #89Controlling User Access
Examine the statement: GRANT select, insert, update ON student_grades TO manager WITH GRANT OPTION; Which two are true? (Choose two.)
GRANTWITH GRANT OPTIONobject privilegesDCL - Question #90Displaying Data from Multiple Tables and Subqueries
Which best describes an inline view?
inline viewsubqueryFROM clauseview types - Question #91Displaying Data from Multiple Tables and Subqueries
Examine the structure of the EMPLOYEES and DEPARTMENTS tables: You want to create a report displaying employee last names, department names, and locations. Which query should you u...
equi-jointable aliasesjoin conditionsmulti-table query - Question #92Restricting and Sorting Data
The PRODUCTS table has these columns: PRODUCT_ID NUMBER (4) PRODUCT_NAME VARCHAR2(45) PRICE NUMBER(8,2) Evaluate this SQL statement: SELECT * FROM PRODUCTS ORDER BY price, product_...
ORDER BYmulti-column sortnumeric sortalphabetical sort - Question #93Displaying Data from Multiple Tables and Subqueries
In which two cases would you use an outer join? (Choose two.)
outer joinNULL valuesunmatched rowsjoin types - Question #95
Examine the structure of the EMPLOYEES table: You want to create a SQL script file that contains an INSERT statement. When the script is run, the INSERT statement should insert a r...
- Question #96Controlling User Access
The user Alice wants to grant all users query privileges on her DEPT table. Which SQL statement accomplishes this?
GRANTPUBLICSELECT privilegeDCL - Question #97Creating and Managing Schema Objects
Which view should a user query to display the columns associated with the constraints on a table owned by the user?
data dictionary viewsUSER_CONS_COLUMNSconstraintsschema objects - Question #98Controlling User Access
Examine these statements: CREATE ROLE registrar; GRANT UPDATE ON student_grades TO registrar; GRANT registrar to user1, user2, user3; What does this set of SQL statements do?
rolesGRANTprivilegesCREATE ROLE - Question #99Displaying Data from Multiple Tables and Subqueries
Which two statements about subqueries are true? (Choose two.)
subqueriesmultiple-row subqueriesinequality operatorsnested subqueries - Question #100Creating and Managing Schema Objects
You need to design a student registration database that contains several tables storing academic information. The STUDENTS table stores information about a student. The STUDENT_GRA...
foreign keyCREATE TABLEreferential integrityconstraints - Question #101Manipulating Data (DML)
Evaluate the SQL statement: TRUNCATE TABLE DEPT; Which three are true about the SQL statement? (Choose three.)
TRUNCATEDDLstorage spacerollback - Question #102Creating and Managing Schema Objects
Which two statements are true about constraints? (Choose two.)
UNIQUE constraintPRIMARY KEYNOT NULLindexes - Question #103Manipulating Data (DML)
Which three are true? (Choose three.)
MERGEupsertINSERTUPDATE