1Z0-061 Exam Questions
318 real 1Z0-061 exam questions with expert-verified answers and explanations. Page 6 of 7.
- Question #254Reporting Aggregated Data using the Group Functions
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...
COUNT functionGROUP BYIN clauseaggregate functions - Question #255Creating Other Schema Objects
What does the FORCE option for creating a view do?
FORCE viewCREATE VIEWbase tablesview options - Question #256Manipulating Data
A data manipulation language statement _____.
DML definitiondata manipulationINSERT UPDATE DELETESQL categories - Question #257
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 #258Controlling 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 USERprivilegesGRANTuser creation - Question #259Controlling 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 privilegesDML privileges - Question #260Using Subqueries to Solve Queries
Which best describes an inline view?
inline viewsubqueryFROM clauseORDER BY - Question #261Displaying Data from Multiple Tables using Joins
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 aliasesmulti-table SELECTcolumn qualification - Question #262Restricting 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 #263Displaying Data from Multiple Tables using Joins
In which two cases would you use an outer join? (Choose two.)
outer joinNULL valuesunmatched rowsjoin types - Question #265
Which SQL statements would display the value 1890.55 as $1, 890.55? (Choose three.)
- Question #266Using Single-Row Functions to Customize Output
Examine the structure of the SHIPMENTS table: You want to generate a report that displays the PO_ID and the penalty amount to be paid if the SHIPMENT_DATE is later than one month f...
date arithmeticADD_MONTHSpenalty calculationdate functions - Question #267Using Subqueries to Solve Queries
View the Exhibit and examine the structure of the CUSTOMERS table. Which two tasks would require subqueries or joins to be executed in a single statement? (Choose two.)
subqueriesjoinsaggregate functionsquery analysis - Question #268
View the Exhibit; examine the structure of the PROMOTIONS table. Each promotion has a duration of at least seven days. Your manager has asked you to generate a report, which provid...
- Question #269Using Single-Row Functions to Customize Output
View the Exhibit and examine the data in the EMPLOYEES table. You want to generate a report showing the total compensation paid to each employee to date. You issue the following qu...
ROUND functioncolumn aliasarithmetic expressionsconcatenation operator - Question #270
Examine the structure of the PROMOTIONS table: The management wants to see a report of unique promotion costs in each promotion category. Which query would achieve the required res...
- Question #271Introduction to SQL
Evaluate the following query: SELECT INTERVAL '300' MONTH, INTERVAL '54-2' YEAR TO MONTH, INTERVAL '11:12:10.1234567' HOUR TO SECOND FROM dual; What is the correct output of the ab...
INTERVAL literalYEAR TO MONTHHOUR TO SECONDinterval formatting - Question #272Using DDL Statements to Create and Manage Tables
Examine the structure proposed for the TRANSACTIONS table: Which two statements are true regarding the storage of data in the above table structure? (Choose two.)
data typesVARCHAR2NUMBERINTERVAL - Question #273Using DDL Statements to Create and Manage Tables
Which two statements are true regarding tables? (Choose two.)
table naming rulesschema objectssynonymsDEFAULT value - Question #274
Which two statements are true regarding constraints? (Choose two.)
- Question #275
View the Exhibit and examine the structure of the PRODUCTS, SALES, and SALE_SUMMARY tables. SALE_VW is a view created using the following command: SQL>CREATE VIEW sale_vw AS SELECT...
- Question #276Using DDL Statements to Create and Manage Tables
Examine the following SQL commands: Which statement is true regarding the execution of the above SQL commands?
CREATE TABLENULL constraintCHECK constraintPRIMARY KEY - Question #277
Which two statements are true regarding views? (Choose two.)
- Question #278Creating Other Schema Objects
Which three statements are true regarding views? (Choose three.)
viewscomplex viewssimple viewsindexes on views - Question #279Creating Other Schema Objects
Evaluate the following CREATE SEQUENCE statement: CREATE SEQUENCE seq1 START WITH 100 INCREMENT BY 10 MAXVALUE 200 CYCLE NOCACHE; The SEQ1 sequence has generated numbers up to the...
sequencesCYCLE optionNEXTVALMAXVALUE - Question #280
Which two statements are true regarding indexes? (Choose two.)
- Question #281Creating Other Schema Objects
SLS is a private synonym for the SH.SALES table. The user SH issues the following command: DROP SYNONYM sls; Which statement is true regarding the above SQL statement?
DROP SYNONYMprivate synonymschema objectssynonym behavior - Question #282
View the Exhibit and examine the data in the PROMOTIONS table. PROMO_BEGIN_DATE is stored in the default date format, dd-mon-rr. You need to produce a report that provides the name...
- Question #283
View the Exhibit and examine the structure of CUSTOMERS table. Evaluate the following query: Which statement is true regarding the above query?
- Question #284
View the Exhibit and examine the structure of the CUSTOMERS table. You want to generate a report showing the last names and credit limits of all customers whose last names start wi...
- Question #285Restricting and Sorting Data
View the Exhibit and examine the structure of the PRODUCTS table. You want to display only those product names with their list prices where the list price is at least double the mi...
ORDER BYsortingDESCexpression sorting - Question #286Restricting and Sorting Data
View the Exhibit and examine the data in the PROMO_CATEGORY and PROMO_COST columns of the PROMOTIONS table. Evaluate the following two queries: SQL>SELECT DISTINCT promo_category t...
DISTINCTcolumn aliasORDER BYquery execution - Question #287
Which tasks can be performed using SQL functions that are built into Oracle database? (Choose three.)
- Question #288Using Single-Row Functions to Customize Output
View the Exhibit and examine the structure of the CUSTOMERS table. In the CUSTOMERS table, the CUST_LAST_NAME column contains the values 'Anderson' and 'Ausson'. You issue the foll...
TRIM functionREPLACE functionLOWER functionnested single-row functions - Question #289
Examine the data in the CUST_NAME column of the CUSTOMERS table. CUST_NAME --------------------- Lex De Haan Renske Ladwig Jose Manuel Urman Jason Mallin You want to extract only t...
- Question #290Using Conversion Functions and Conditional Expressions
View the Exhibit and examine the structure and data in the INVOICE table. Which statements are true regarding data type conversion in expressions used in queries? (Choose all that...
implicit conversionexplicit conversiondata type comparisondate literals - Question #291Manipulating Data
Which statements are true regarding the FOR UPDATE clause in a SELECT statement? (Choose all that apply.)
FOR UPDATErow lockingmulti-table SELECTDML locking - Question #292Using Conversion Functions and Conditional Expressions
Examine the structure and data in the PRICE_LIST table: Name . Null . Type ---------------------- PROD_ID . NOT NULL . NUMBER(3) PROD_PRICE . VARCHAR2(10) PROD_ID PROD_PRICE ------...
TO_CHARTO_NUMBERcurrency format modeltype conversion - Question #293Using Single-Row Functions to Customize Output
Examine the structure of the TRANSACTIONS table: Name Null Type TRANS_ID NOT NULL NUMBER(3) CUST_NAME VARCHAR2(30) TRANS_DATE DATE TRANS_AMT NUMBER(10, 2) You want to display the t...
TO_CHAR date formatday of weekDECODEconditional date logic - Question #294
Examine the structure of the PROMOS table: You want to generate a report showing promo names and their duration (number of days). If the PROMO_END_DATE has not been entered, the me...
- Question #295Using Conversion Functions and Conditional Expressions
Examine the structure of the PROMOS table: You want to display the list of promo names with the message 'Same Day' for promos that started and ended on the same day. Which query gi...
NVL2NULLIFDECODEconditional expressions - Question #296Using Conversion Functions and Conditional Expressions
Examine the data in the LIST_PRICE and MIN_PRICE columns of the PRODUCTS table: Which two expressions give the same output? (Choose two.)
COALESCENVLNVL2NULLIF - Question #297Reporting Aggregated Data using the Group Functions
View the Exhibit and examine the structure and data in the INVOICE table. Which two SQL statements would execute successfully? (Choose two.)
AVGMAXMINaggregate function validity - Question #298Reporting Aggregated Data using the Group Functions
You issue the following query: SQL> SELECT AVG(MAX(qty)) FROM ord_items GROUP BY item_no HAVING AVG(MAX(qty))>50; Which statement is true regarding the outcome of this query?
nested aggregatesGROUP BYHAVING clauseAVG MAX - Question #299
Which statements are true regarding the WHERE and HAVING clauses in a SELECT statement? (Choose all that apply.)
- Question #300
View the exhibit and examine the description for the SALES and CHANNELS tables. You issued the following SQL statement to insert a row in the SALES table: INSERT INTO sales VALUES...
- Question #301
View the Exhibit and examine the data in the PROJ_TASK_DETAILS table. The PROJ_TASK_DETAILS table stores information about tasks involved in a project and the relation between them...
- Question #302
Examine the data in the CUSTOMERS table: You want to list all cities that have more than one customer along with the customer details. Evaluate the following query: SQL>SELECT c1.c...
- Question #303
View the Exhibit and examine the structure of the SALES and PRODUCTS tables. In the SALES table, PROD_ID is the foreign key referencing PROD_ID in the PRODUCTS table. You want to l...
- Question #304Using Subqueries to Solve Queries
Which three statements are true regarding subqueries? (Choose three.)
subquery rulesmulti-column subqueryGROUP BY in subquerycross-table subquery