1Z0-007 Exam Questions
196 real 1Z0-007 exam questions with expert-verified answers and explanations. Page 1 of 4.
- Question #1Monitor and Troubleshoot a XenDesktop 7 Environment
Which statement explicitly names a constraint?
SQL constraintsALTER TABLEnamed constraintsSQL DDL - Question #2Monitor and Troubleshoot a XenDesktop 7 Environment
Examine the SQL statements that create ORDERS table: For which columns would an index be automatically created when you execute the above SQL statement? (Choose two)
SQL indexesautomatic index creationprimary keycomposite index - Question #3Monitor and Troubleshoot a XenDesktop 7 Environment
You created a view called EMP_DEPT_VU that contains three columns from the EMPLOYEES and DEPARTMENTS tables: EMPLOYEE_ID, EMPLOYEE_NAME AND DEPARTMENT_NAME. The DEPARTMENT_ID colum...
SQL viewsCREATE OR REPLACE VIEWview modificationSQL DDL - Question #4Monitor and Troubleshoot a XenDesktop 7 Environment
For which two constraints does the Oracle Server implicitly create a unique index? (Choose two.)
Oracle constraintsunique indexPRIMARY KEY constraintUNIQUE constraint - Question #5Monitor and Troubleshoot a XenDesktop 7 Environment
Which three SELECT statements displays 2000 in the format "$2,000.00"? (Choose three)
SQL TO_CHARnumber formattingOracle functionsSQL formatting - Question #7Monitor and Troubleshoot a XenDesktop 7 Environment
Examine the structure of the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. Which two SQL statements produce the name, department name, and the city of all the employees who earn mo...
SQL JOINmulti-table querySELECT statementSQL filtering - Question #8Using Functions (Single-Row, Group, Conversion, Conditional)
Examine the description of the EMPLOYEES table: Which statement shows the department ID, minimum salary, and maximum salary paid in that department, only of the minimum salary is l...
GROUP BYHAVING clauseMIN MAXaggregate functions - Question #9Creating and Managing Schema Objects
Examine the structure if the EMPLOYEES table: You need to create a view called EMP_VU that allows the user to insert rows through the view. Which SQL statement, when used to create...
CREATE VIEWDML through viewsview insertabilityview constraints - Question #10Using Functions (Single-Row, Group, Conversion, Conditional)
The STUDENT_GRADES table has these columns: The registrar has asked for a report on the average grade point average (GPA) for students enrolled during semesters that end in the yea...
AVG functionaggregate functionsGROUP BYGPA report - Question #11Manipulating Data (DML)
Examine the structure of the EMPLOYEES and NEW EMPLOYEES tables: Which MERGE statement is valid?
MERGE statementMERGE INTO syntaxDMLtable merge - Question #12Using Functions (Single-Row, Group, Conversion, Conditional)
Which two are true about aggregate functions? (Choose two.)
aggregate functionsGROUP BY rulesSELECT clause restrictionssingle-row vs aggregate - Question #13Displaying 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) Which statement lists the ID, name,...
self-jointable aliasesmanager-employee relationshipWHERE filtering - Question #14Using Functions (Single-Row, Group, Conversion, Conditional)
In a SELECT statement that includes a WHERE clause, where is the GROUP BY clause placed in the SELECT statement?
GROUP BY placementclause orderingWHERE vs HAVINGSELECT syntax - Question #15Restricting and Sorting Data
The STUDENT_GRADES table has these columns: STUDENT_ID NUMBER (12) SEMESTER_END DATE GPA NUMBER (4,3) The register has requested a report listing the students' grade point averages...
ORDER BYmulti-column sortASC DESCsort priority - Question #16Creating and Managing Schema Objects
You need to create a view EMP_VU. The view should allow the users to manipulate the records of only the employees that are working for departments 10 or 20. Which SQL statement wou...
CREATE VIEWWITH CHECK OPTIONview DML restrictiondepartment filter - Question #17Restricting and Sorting Data
Examine the structure of the STUDENTS table: You need to create a report of the 10 students who achieved the highest ranking in the course INT SQL and who completed the course in t...
ROWNUMtop-N querysubqueryORDER BY in subquery - Question #18Using Functions (Single-Row, Group, Conversion, Conditional)
Which four statements correctly describe functions that are available in SQL? (Choose four)
single-row functionsDECODENULLIFTRIM INSTR - Question #19Displaying Data from Multiple Tables and Subqueries
Examine the data from the EMP table: The COMMISSION column shows the monthly commission earned by the employee. Which three tasks would require subqueries or joins in order to perf...
subqueries in DMLjoinsaggregate in UPDATECREATE TABLE AS SELECT - Question #20Using Functions (Single-Row, Group, Conversion, Conditional)
The CUSTOMERS table has these columns: The CUSTOMER_ID column is the primary key for the table. Which two statements find the number of customers? (Choose two.)
COUNT functionCOUNT(*)COUNT(column)aggregate functions - Question #21Using Functions (Single-Row, Group, Conversion, Conditional)
Which two tasks can your perform by using the TO_CHAR function? (Choose two)
TO_CHARconversion functionsdate to characternumber to character - Question #22Restricting and Sorting Data
Which two statements are true regarding the ORDER BY clause? (Choose two)
ORDER BYdefault ascending sortclause positionSELECT statement structure - Question #23Creating and Managing Schema Objects
Which two statements about sequences are true? (Choose two)
sequencesNEXTVALCURRVALsequence pseudo-columns - Question #24Creating and Managing Schema Objects
Which four are correct guidelines for naming database tables? (Choose four)
table naming rulesidentifier lengthreserved wordsvalid characters - Question #25Creating and Managing Schema Objects
Examine the structure of the EMPLOYEES table: You need to create an index called NAME_IDX on the first name and last name fields of the EMPLOYEES table. Which SQL statement would y...
CREATE INDEXcomposite indexindex syntaxON clause - Question #26Displaying Data from Multiple Tables and Subqueries
Which operator can be used with a multiple-row subquery?
multiple-row subqueryNOT IN operatorsubquery operatorsIN ANY ALL - Question #27Displaying Data from Multiple Tables and Subqueries
Examine the structure of the EMPLOYEES, DEPARTMENTS, and TAX tables. For which situation would you use a nonequijoin query?
nonequijoinBETWEEN in joinsalary range lookuptax table join - Question #28Displaying Data from Multiple Tables and Subqueries
Examine the data from the ORDERS and CUSTOMERS tables. Evaluate the SQL statement: SELECT * FROM orders WHERE cust_id = (SELECT cust_id FROM customers WHERE cust_name = 'Smith'); W...
single-row subqueryequality operatorWHERE clausecorrelated tables - Question #29Restricting and Sorting Data
You need to display the last names of those employees who have the letter "A" as the second character in their names. Which SQL statement displays the required results?
LIKE operatorwildcardpattern matchingunderscore wildcard - Question #30Creating and Managing Schema Objects
You need to perform certain data manipulation operations through a view called EMP_DEPT_VU, which you previously created. You want to look at the definition of the view (the SELECT...
USER_VIEWSdata dictionaryview definitionschema objects - Question #31Displaying Data from Multiple Tables and Subqueries
Evaluate this SQL statement: SELECT e.EMPLOYEE_ID,e.LAST_NAME,e.DEPARTMENT_ID, d.DEPARTMENT_NAME FROM EMP e, DEPARTMENT d WHERE e.DEPARTMENT_ID = d.DEPARTMENT_ID; In the statement,...
selectionprojectionjoinSELECT capabilities - Question #32Using Functions (Single-Row, Group, Conversion, Conditional)
Which clause should you use to exclude group results?
HAVING clausegroup filteringGROUP BYaggregate functions - Question #33Displaying Data from Multiple Tables and Subqueries
A subquery can be used to _________.
subqueryunknown conditionnested SELECTquery purpose - Question #34Restricting and Sorting Data
The EMPLOYEES table contains these columns: You need to write a query that will produce these results: 1. Display the salary multiplied by the commission_pct. 2. Exclude employees...
NULL handlingIS NOT NULLNVL functionWHERE clause analysis - Question #35Using Functions (Single-Row, Group, Conversion, Conditional)
Which SELECT statement should you use to extract the year from the system date and display it in the format "1998"?
TO_CHARdate formattingSYSDATEconversion functions - Question #36Basic SQL SELECT Statements
Which is an /SQL*Plus command?
SQL*PlusDESCRIBE commandiSQL*Plus commandsDML vs DDL - Question #37Manipulating Data (DML)
What does the TRUNCATE statement do?
TRUNCATEDDLremove rowstable data - Question #38Creating and Managing Schema Objects
You need to change the definition of an existing table. The COMMERCIALS table needs its DESCRIPTION column changed to hold varying length characters up to 2000 bytes. The column ca...
ALTER TABLEMODIFY columnVARCHAR2column size increase - Question #39Controlling User Access
Which statement creates a new user?
CREATE USERIDENTIFIED BYuser managementsyntax - Question #40Displaying Data from Multiple Tables and Subqueries
Which three are true regarding the use of outer joins? (Choose three.)
outer joinOracle join notationIN operator restrictionOR operator restriction - Question #41Displaying Data from Multiple Tables and Subqueries
In which scenario would TOP N analysis be the best solution?
TOP N analysisROWNUMrankinganalytical queries - Question #43Controlling User Access
What is true about the WITH GRANT OPTION clause?
WITH GRANT OPTIONobject privilegesprivilege propagationGRANT - Question #44Basic SQL SELECT Statements
Which substitution variable would you use if you want to reuse the variable without prompting the user each time?
substitution variablesdouble ampersandvariable reuseiSQL*Plus - Question #45Creating and Managing Schema Objects
The EMPLOYEES table has these columns: LAST NAME VARCHAR2(35) SALARY NUMBER(8,2) HIRE_DATE DATE Management wants to add a default value to the SALARY column. You plan to alter the...
ALTER TABLEDEFAULT valueMODIFYcolumn modification behavior - Question #46Controlling 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 USERdefault privilegesno privilegesuser creation - Question #47Manipulating Data (DML)
Which two statements complete a transaction? (Choose two)
transaction controlDDL auto-commitGRANT commitROLLBACK SAVEPOINT - Question #48Basic SQL SELECT Statements
You need to produce a report for mailing labels for all customers. The mailing label must have only the customer name and address. The CUSTOMERS table has these columns: Which SELE...
SELECT statementcolumn projectiontable querybasic SELECT - Question #49Creating and Managing Schema Objects
Which statement describes the ROWID data type?
ROWIDdata typespseudocolumnsOracle storage - Question #50Creating and Managing Schema Objects
Evaluate the SQL statement DROP TABLE DEPT: Which four statements are true of the SQL statement? (Choose four)
DROP TABLEDDL effectsimplicit commitindexes - Question #51Controlling User Access
You are granted the CREATE VIEW privilege. What does this allow you to do?
CREATE VIEW privilegesystem privilegesschema ownershipprivilege scope - Question #52Creating and Managing Schema Objects
Which two statements about creating constraints are true? (Choose two)
constraintstable creationALTER TABLEconstraint syntax