QUESTION 141 You want to display the date for the first Monday of the next month and issue the following command: SQL>SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE),’MON’), ‘dd “is the first Monday for” fmmonth rrrr’) FROM DUAL; What is the outcome? A. It executes successfully and returns the correct result. B. It executes successfully but does not return the […]
Tag: 1z0-051 Exam Questions
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE (131-140)
QUESTION 131 In the CUSTOMERS table, the CUST_CITY column contains the value ‘Paris’ for the CUST_FIRST_NAME ‘ABIGAIL’. Evaluate the following query: SQL> SELECT INITCAP(cust_first_name || ‘ ‘ || UPPER(SUBSTR(cust_city,-LENGTH(cust_city),2))) FROM customers WHERE cust_first_name = ‘ABIGAIL’; What would be the outcome? A. Abigail PA B. Abigail Pa C. Abigail IS D. an error message Answer: B
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE (121-130)
QUESTION 121 Which two statements are true regarding the ORDER BY clause? (Choose two.) A. It is executed first in the query execution. B. It must be the last clause in the SELECT statement. C. It cannot be used in a SELECT statement containin g a HAVING clause. D. You cannot specify a column name […]
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE (111-120)
QUESTION 111 The CUSTOMERS table has the following structure: Name Null Type ————– ———– ———– ———- CUST_ID NOT NULL NUMBER CUST_FIRST_NAME NOT NULL VARCHAR2(20) CUST_LAST_NAME NOT NULL VARCHAR2(30) CUST_INCOME_LEVEL VARCHAR2(30) CUST_CREDIT_LIMIT NUMBER You need to write a query that does the following tasks: 1. Display the first name and tax amount of the customers. Tax […]
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE (101-110)
QUESTION 101 View the Exhibit and examine the structure of ORD and ORD_ITEMS tables. The ORD_NO column is PRIMARY KEY in the ORD table and the ORD_NO and ITEM_NO columns are composite PRIMARY KEY in the ORD_ITEMS table. Which two CREATE INDEX statements are valid? (Choose two.)
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE (91-100)
QUESTION 91 You issued the following command to drop the PRODUCTS table: SQL> DROP TABLE products; What is the implication of this command? (Choose all that apply.) A. All data along with the table structure is deleted. B. The pending transaction in the session is committed. C. All indexes on the table will remain but […]
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE (81-90)
QUESTION 81 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? A. It executes successfully and gives the correct output. B. It gives an error because the HAVING clause is not valid. C. It executes successfully but does not […]
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE (71-80)
QUESTION 71 View the Exhibit and examine the description of SALES and PROMOTIONS tables. You want to delete rows from the SALES table, where the PROMO_NAME column in the PROMOTIONS table has either blowout sale or everyday low price as values. Which DELETE statements are valid? (Choose all that apply.)
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE(61-70)
QUESTION 61 View the Exhibit and examine the structure of ORDERS and CUSTOMERS tables. There is only one customer with the cust_last_name column having value Roberts. Which INSERT statement should be used to add a row into the ORDERS table for the customer whose CUST_LAST_NAME is Roberts and CREDIT_LIMIT is 600?
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE(51-60)
QUESTION 51 View the Exhibit and examine the data in the PROMOTIONS table. You need to display all promo categories that do not have ‘discount’ in their subcategory. Which two SQL statements give the required result? (Choose two.)
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE(41-50)
QUESTION 41 View the Exhibit and examine the structure of CUSTOMERS and GRADES tables. You need to display names and grades of customers who have the highest credit limit. Which two SQL statements would accomplish the task? (Choose two.) A. SELECT custname, grade FROM customers, grades WHERE (SELECT MAX(cust_credit_limit) FROM customers) BETWEEN startval and endval; […]
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE(31-40)
QUESTION 31 View the Exhibit and examine the data in the EMPLOYEES table: You want to display all the employee names and their corresponding manager names. Evaluate the following query: SQL> SELECT e.employee_name “EMP NAME”, m.employee_name “MGR NAME” FROM employees e ______________ employees m ON e.manager_id = m.employee_id; Which JOIN option can be used in […]
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE(21-30)
QUESTION 21 View the Exhibit for the structure of the STUDENT and FACULTY tables. You need to display the faculty name followed by the number of students handled by the faculty at the base location. Examine the following two SQL statements: Statement 1 SQL>SELECT faculty_name,COUNT(student_id) FROM student JOIN faculty USING (faculty_id, location_id) GROUP BY faculty_name; […]
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE(11-20)
QUESTION 11 Examine the structure of the PROGRAMS table: name Null Type —— ——— ——- PROG_ID NOT NULL NUMBER(3) PROG_COST NUMBER(8,2) START_DATE NOT NULL DATE END_DATE DATE Which two SQL statements would execute successfully? (Choose two.) A. SELECT NVL(ADD_MONTHS(END_DATE,1),SYSDATE) FROM programs; B. SELECT TO_DATE(NVL(SYSDATE-END_DATE,SYSDATE)) FROM programs; C. SELECT NVL(MONTHS_BETWEEN(start_date,end_date),’Ongoing’) FROM programs; D. SELECT NVL(TO_CHAR(MONTHS_BETWEEN(start_date,end_date)),’Ongoing’) FROM […]
Free Download Pass4sure and Lead2pass 1Z0-051 Exam Question with PDF & VCE(1-10)
QUESTION 1 Which is the valid CREATE TABLE statement? A. CREATE TABLE emp9$# (emp_no NUMBER (4)); B. CREATE TABLE 9emp$# (emp_no NUMBER(4)); C. CREATE TABLE emp*123 (emp_no NUMBER(4)); D. CREATE TABLE emp9$# (emp_no NUMBER(4), date DATE); Answer: A