1Z0-007 Exam Questions
196 real 1Z0-007 exam questions with expert-verified answers and explanations. Page 3 of 4.
- Question #104Creating and Managing Schema Objects
Which is a valid CREATE TABLE statement?
CREATE TABLEnaming rulesobject namingDDL - Question #105Basic SQL SELECT Statements
A SELECT statement can be used to perform these three functions: 1. Choose rows from a table. 2. Choose columns from a table 3. Bring together data that is stored in different tabl...
selectionprojectionjoinrelational operations - Question #106Using Functions (Single-Row, Group, Conversion, Conditional)
Which four are types of functions available in SQL? (Choose 4)
character functionsnumeric functionsdate functionsconversion functions - Question #107Creating and Managing Schema Objects
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER NOT NULL, Primary Key EMP_NAME VARCHAR2(30) JOB_ID NUMBER\ SAL NUMBER MGR_ID NUMBER References EMPLOYEE_ID column D...
sequencesNEXTVALsequence independenceschema objects - Question #110Restricting 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; What...
ORDER BYpositional referencecolumn aliassorting - Question #111Manipulating 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...
MERGE syntaxUSING clauseON clauseDML - Question #112
Which SQL statement displays the date March 19, 2001 in a format that appears as "Nineteenth of March 2001 12:00:00 AM"?
- Question #113
Which one is a system privilege?
- Question #114
Which two are true about aggregate functions? (Choose two.)
- Question #115Controlling User Access
You need to perform these tasks: 1. Create and assign a MANAGER role to Blake and Clark 2. Grant CREATE TABLE and CREATE VIEW privileges to Blake and Clark Which set of SQL stateme...
CREATE ROLEGRANTsystem privilegesobject privileges - Question #116
Which statement correctly describes SQL and /SQL*Plus?
- Question #117
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...
- Question #118
Exhibit Examine the data in the EMPLOYEES and DEPARTMENTS tables. You want to retrieve all employees' last names, along with their manager's last names and their department names....
- Question #119
The STUDENT_GRADES table has these columns: The registrar has asked for a report on the average grade point average (GPA), sorted from the highest grade point average to each semes...
- Question #120Basic SQL SELECT Statements
Which are /SQL*Plus commands? (Choose all that apply.)
SQL*Plus commandsDESCRIBEclient toolsDDL vs SQL - Question #121Manipulating Data (DML)
Examine the structure of the EMPLOYEES table: Which INSERT statement is valid?
INSERTcolumn listDMLsyntax - Question #122
Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables: Which DELETE statement is valid?
- Question #123Creating and Managing Schema Objects
User Mary has a view called EMP_DEPT_LOC_VU that was created based on the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. She has the privilege to create a public synonym, and would...
CREATE PUBLIC SYNONYMsynonymsschema objectsDDL - Question #124
Exhibit The COMMISSION column shows the monthly commission earned by the employee. Which two tasks would require subqueries or joins in order to be performed in a single step? (Cho...
- Question #125Displaying Data from Multiple Tables and Subqueries
Evaluate this SQL statement: SELECT e.emp_name, d.dept_name FROM employees e JOIN departments d USING (department_id) WHERE d.department_id NOT IN (10,40) ORDER BY dept_name; The s...
JOIN USINGtable alias restrictionjoin syntaxquery errors - Question #126
Examine the statement: Create synonym emp for hr.employees; What happens when you issue the statement?
- Question #127
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2 (25) LAST_NAME VARCHAR2 (25) HIRE_DATE DATE Which UPDATE statement is valid?
- Question #128Creating and Managing Schema Objects
What is true about sequences?
sequencesMINVALUEascending sequencesequence defaults - Question #129
The STUDENT_GRADES table has these columns STUDENT_ID NUMBER(12) SEMESTER_END DATE GPA NUMBER(4,3) Which statement finds students who have a grade point average (GPA) greater than...
- Question #130
Exhibit Evaluate this SQL statement: SELECT cust_id, ord_total FROM orders WHERE ord_total > ANY (SELECT ord_total FROM orders WHERE cust_id IN (SELECT cust_id FROM customers WHERE...
- Question #131
Examine the data from the EMP table. Evaluate this SQL statement: SELECT * FROM emp WHERE commission = (SELECT commission FROM emp WHERE emp_id=3); What is the result when the quer...
- Question #132Displaying Data from Multiple Tables and Subqueries
Which three statements about subqueries are true? (Choose three.)
subqueriesmultiple subqueriescolumn comparisoncross-table subqueries - Question #133Displaying Data from Multiple Tables and Subqueries
Examine the data in the EMPLOYEES and DEPARTMENTS tables. You want to retrieve all employees, whether or not they have matching departments in the departments table. Which query wo...
outer joinLEFT OUTER JOINEMPLOYEES tableDEPARTMENTS table - Question #134Manipulating 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 inserts a row into the table? (Ch...
INSERT statementcolumn list syntaxprimary key NOT NULLDML syntax - Question #135Controlling User Access
You need to give the MANAGER role the ability to select from, insert into, and modify existing rows in the STUDENT_GRADES table. Anyone given this MANAGER role should be able to pa...
GRANTrole privilegesWITH ADMIN OPTIONDML privileges - Question #136Displaying Data from Multiple Tables and Subqueries
Examine the data in the EMPLOYEES table: Which three subqueries work? (Choose three)
subqueryIN operatorDISTINCT in subqueryWHERE clause subquery - Question #137Creating and Managing Schema Objects
The database administrator of your company created a public synonym called HR for the HUMAN_RESOURCES table of the GENERAL schema, because many users frequently use this table. As...
public synonymschema name resolutionobject name precedenceuser schema - Question #138Creating and Managing Schema Objects
Which two statements about views are true? (Choose two.)
viewsread-only viewjoin viewview restrictions - Question #139Using Functions (Single-Row, Group, Conversion, Conditional)
Examine the description of the EMPLOYEES table: Which statement shows the maximum salary paid in each job category of each department?
GROUP BYMAX functionmulti-column groupingaggregate functions - Question #140Using Functions (Single-Row, Group, Conversion, Conditional)
Management has asked you to calculate the value 12*salary* commission_pct for all the employees in the EMP table. The EMP table contains these columns: Which statement ensures that...
NVL functionNULL handlingarithmetic expressionscommission calculation - Question #141Creating and Managing Schema Objects
Which syntax turns an existing constraint on?
ALTER TABLEENABLE CONSTRAINTconstraint managementDDL syntax - Question #142Using Functions (Single-Row, Group, Conversion, Conditional)
Examine the description of the STUDENTS table: Which two aggregate functions are valid on the START_DATE column? (Choose two)
aggregate functionsDATE column aggregationCOUNTMIN on dates - Question #143Using Functions (Single-Row, Group, Conversion, Conditional)
The EMPLOYEE tables have these columns: You want to display the name and annual salary multiplied by the commission_pct for all employees. For records that have a NULL commission_p...
NVL functionNULL commissioncalculated columnsNULL arithmetic - Question #144Displaying Data from Multiple Tables and Subqueries
Examine the data from the ORDERS and CUSTOMERS table. Which SQL statement retrieves the order ID, customer ID, and order total for the orders that are placed on the same day that M...
subquerydate comparisonIN operatorcorrelated subquery - Question #145Creating 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 TABLEADD CONSTRAINTprimary keytable modification - Question #146Displaying Data from Multiple Tables and Subqueries
Evaluate the SQL statement: 1 SELECT a.emp_name, a.sal, a.dept_id, b.maxsal 2 FROM employees a, 3 (SELECT dept_id, MAX(sal) maxsal 4. FROM employees 5. GROUP BY dept_id) b 6. WHERE...
inline viewsubquery in FROM clausedepartment max salaryself-join pattern - Question #147Manipulating Data (DML)
Examine the data in the EMPLOYEES and DEPARTMENTS tables: Also examine the SQL statements that create the EMPLOYEES and DEPARTMENTS tables: CREATE TABLE departments (department_id...
DELETEforeign key constraintreferential integrityconstraint violation - Question #148Creating and Managing Schema Objects
Which three are DATETIME data types that can be used when specifying column definitions? (Choose three.)
DATETIME data typesTIMESTAMPINTERVAL typesOracle date types - Question #149Creating and Managing Schema Objects
Which SQL statement defines the FOREIGN KEY constraint on the DEPTNO column of the EMP table?
FOREIGN KEYCREATE TABLEREFERENCES clauseconstraint definition - Question #150Creating and Managing Schema Objects
Evaluate the set of SQL statements: CREATE TABLE dept (deptno NUMBER(2), dname VARCHAR2(14), loc VARCHAR2(13)); ROLLBACK; DESCRIBE DEPT What is true about the set?
DDL auto-commitROLLBACK behaviorCREATE TABLEimplicit commit - Question #151Controlling User Access
Which data dictionary table should you query to view the object privileges granted to the user on specific columns?
data dictionaryUSER_COL_PRIVScolumn-level privilegesobject privileges - Question #152Displaying Data from Multiple Tables and Subqueries
Examine the structure of the EMPLOYEES and DEPARTMENTS tables: Evaluate this SQL statement: SELECT employee_id, e.department_id, department_name, Salary FROM employees e, departmen...
NATURAL JOINJOIN USINGequijoin equivalencetable alias - Question #153Restricting and Sorting Data
The EMP table contains these columns: You need to display the employees who have not been assigned to any department. You write the SELECT statement: SELECT LAST_NAME, SALARY, DEPA...
NULL comparisonIS NULL operatorWHERE clauseNULL values - Question #154Using Functions (Single-Row, Group, Conversion, Conditional)
Evaluate the SQL statement: SELECT ROUND (TRUNC(MOD(1600,10),-1),2) FROM dual; What will be displayed?
MOD functionTRUNC functionROUND functionnested functions - Question #155Using Functions (Single-Row, Group, Conversion, Conditional)
Examine the description of the MARKS table: SUBJ1 and SUBJ2 indicate the marks obtained by a student in two subjects. Examine this SELECT statement based on the MARKS table: SELECT...
group functions in WHEREAVG functionHAVING clauseaggregate restriction