Free 1Z0-051 Dumps Questions 2021

Want to know 1z0 051 practice test features? Want to lear more about 1z0 051 practice test experience? Study 1z0 051 dumps. Gat a success with an absolute guarantee to pass Oracle 1Z0-051 (Oracle Database: SQL Fundamentals I) test on your first attempt.

Free demo questions for Oracle 1Z0-051 Exam Dumps Below:

NEW QUESTION 1
Examine the structure of the EMPLOYEES table:
1Z0-051 dumps exhibit
You want to create a SQL script file that contains an INSERT statement. When the script is run, the INSERT statement should insert a row with the specified values into the EMPLOYEES table. The INSERT statement should pass values to the table columns as specified below:
1Z0-051 dumps exhibit
Which INSERT statement meets the above requirements?

  • A. INSERT INTO employees VALUES (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did);
  • B. INSERT INTO employees VALUES (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did IN (20,50));
  • C. INSERT INTO (SELECT * FROM employees WHERE department_id IN (20,50)) VALUES (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did);
  • D. INSERT INTO (SELECT * FROM employees WHERE department_id IN (20,50) WITH CHECK OPTION) VALUES (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did);
  • E. INSERT INTO (SELECT * FROM employees WHERE (department_id = 20 AND department_id = 50) WITH CHECK OPTION ) VALUES (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did);

Answer: D

NEW QUESTION 2
Which two statements are true regarding constraints? (Choose two.)

  • A. A table can have only one primary key and one foreign ke
  • B. A table can have only one primary key but multiple foreign key
  • C. Only the primary key can be defined at the column and table level
  • D. The foreign key and parent table primary key must have the same nam
  • E. Both primary key and foreign key constraints can be defined at both column and table level

Answer: BE

NEW QUESTION 3
Which are /SQL*Plus commands? (Choose all that apply.)

  • A. INSERT
  • B. UPDATE
  • C. SELECT
  • D. DESCRIBE
  • E. DELETE
  • F. RENAME

Answer: D

Explanation:
Describe is a valid iSQL*Plus/ SQL*Plus command.
INSERT, UPDATE & DELETE are SQL DML Statements. A SELECT is an ANSI Standard
SQL Statement not an iSQL*Plus Statement.
RENAME is a DDL Statement.

NEW QUESTION 4
View the Exhibit and examine the structure of the PROMOTIONS, SALES, and CUSTOMER tables.
1Z0-051 dumps exhibit
You need to generate a report showing the promo name along with the customer name for all products that were sold during their promo campaign and before 30th October 2007.
You issue the following query:
Which statement is true regarding the above query?

  • A. It executes successfully and gives the required resul
  • B. It executes successfully but does not give the required resul
  • C. It produces an error because the join order of the tables is incorrec
  • D. It produces an error because equijoin and nonequijoin conditions cannot be used in the same SELECT statemen

Answer: B

NEW QUESTION 5
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 than the maximum salary in their department.
Which statement accomplishes this task?

  • A. SELECT a.emp_name, a.sal, b.dept_id, MAX(sal) FROM employees a, departments b WHERE a.dept_id = b.dept_id AND a.sal < MAX(sal) GROUP BY b.dept_id;
  • B. SELECT a.emp_name, a.sal, a.dept_id, b.maxsal FROM employees a, (SELECT dept_id, MAX(sal) maxsal FROM employees GROUP BY dept_id) b WHERE a.dept_id = b.dept_id AND a.sal < b.maxsal;
  • C. SELECT a.emp_name, a.sal, a.dept_id, b.maxsal FROM employees a WHERE a.sal < (SELECT MAX(sal) maxsal FROM employees b GROUP BY dept_id);
  • D. SELECT emp_name, sal, dept_id, maxsal FROM employees, (SELECT dept_id, MAX(sal) maxsal FROM employees GROUP BY dept_id) WHERE a.sal < maxsal;

Answer: B

Explanation: function MAX(column_name)
Incorrect Answer:
Ainvalid statement
Cinner query return more than one line
Dcolumn maxsal does not exists.
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 5-7

NEW QUESTION 6
Examine the structure of the PROMOS table:
1Z0-051 dumps exhibit
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 gives the correct output?

  • A. SELECT promo_name, NVL(NULLIF(promo_start_date, promo_end_date), 'Same Day') FROM promos;
  • B. SELECT promo_name, NVL(TRUNC(promo_end_date - promo_start_date), 'Same Day') FROM promos;
  • C. SELECT promo_name, NVL2(TO_CHAR(TRUNC(promo_end_date-promo_start_date)), NULL,'Same Day') FROM promos;
  • D. SELECT promo_name, DECODE((NULLIF(promo_start_date, promo_end_date)), NULL,'Same day') FROM promos;

Answer: D

Explanation:
The NULLIF Function The NULLIF function tests two terms for equality. If they are equal the function returns a null, else it returns the first of the two terms tested. The NULLIF function takes two mandatory parameters of any data type. The syntax is NULLIF(ifunequal, comparison_term), where the parameters ifunequal and comparison_term are compared. If they are identical, then NULL is returned. If they differ, the ifunequal parameter is returned ANSWER A - date and String incompatibl;a datatypes for NVL function The Date TRUNC Function The date TRUNC function performs a truncation operation on a date value based on a specified date precision format. The date TRUNC function takes one mandatory and one optional parameter. Its syntax is TRUNC(source date, [date precision format]). The source date parameter represents any value that can be implicitly converted into a date item. The date precision format parameter specifies the degree of truncation and is optional. If it is absent, the default degree of truncation is day. This means that any time component

NEW QUESTION 7
See the exhibit and examine the structure of the CUSTOMERS and GRADES tables:
1Z0-051 dumps exhibit
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;
  • B. SELECT custname, grade FROM customers, grades WHERE (SELECT MAX(cust_credit_limit) FROM customers) BETWEEN startval and endval AND cust_credit_limit BETWEEN startval AND endval;
  • C. SELECT custname, grade FROM customers, grades WHERE cust_credit_limit = (SELECT MAX(cust_credit_limit) FROM customers) AND cust_credit_limit BETWEEN startval AND endval;
  • D. SELECT custname, grade FROM customers , grades WHERE cust_credit_limit IN (SELECT MAX(cust_credit_limit) FROM customers) AND MAX(cust_credit_limit) BETWEEN startval AND endval;

Answer: BC

NEW QUESTION 8
Which SQL statement would you use to remove a view called EMP_DEPT_VU from your schema?

  • A. DROP emp_dept_vu;
  • B. DELETE emp_dept_vu;
  • C. REMOVE emp_dept_vu;
  • D. DROP VIEW emp_dept_vu;
  • E. DELETE VIEW emp_dept_vu;
  • F. REMOVE VIEW emp_dept_vu;

Answer: D

Explanation:
DROP VIEW viewname;
Incorrect Answer: ANot a valid drop view statement BNot a valid drop view statement CNot a valid drop view statement ENot a valid drop view statement FNot a valid drop view statement
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 11-20

NEW QUESTION 9
You are currently located in Singapore and have connected to a remote database in
Chicago.
You issue the following command:
Exhibit:
1Z0-051 dumps exhibit
PROMOTIONS is the public synonym for the public database link for the PROMOTIONS table.
What is the outcome?

  • A. Number of days since the promo started based on the current Singapore data and tim
  • B. An error because the ROUND function specified is invalid
  • C. An error because the WHERE condition specified is invalid
  • D. Number of days since the promo started based on the current Chicago data and time

Answer: D

NEW QUESTION 10
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?

  • A. SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL;
  • B. SELECT (gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;
  • C. SELECT MAX(gpa) FROM student_grades WHERE gpa IS NOT NULL GROUP BY semester_end;
  • D. SELECT MAX(gpa) GROUP BY semester_end WHERE gpa IS NOT NULL FROM student_grades;
  • E. SELECT MAX(gpa) FROM student_grades GROUP BY semester_end WHERE gpa IS NOT NULL;

Answer: C

Explanation: Explanation: For highest gpa value MAX function is needed, for result with per semester GROUP BY clause is needed
Incorrect Answer: Aper semester condition is not included Bresult would not display the highest gpa value Dinvalid syntax error Einvalid syntax error Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 5-7

NEW QUESTION 11
Examine the structure and data of the CUSTJTRANS table:
CUSTJRANS
Name Null? Type
CUSTNO NOT NULL CHAR(2) TRANSDATE DATE TRANSAMT NUMBER(6.2) CUSTNO TRANSDATE TRANSAMT
11 01-JAN-07 1000
22 01-FEB-07 2000
33 01-MAR-07 3000
Dates are stored in the default date format dd-mon-rr in the CUSTJTRANS table. Which three SQL statements would execute successfully? (Choose three.)

  • A. SELECT transdate + '10' FROM custjrans;
  • B. SELECT * FROM custjrans WHERE transdate = '01-01-07':
  • C. SELECT transamt FROM custjrans WHERE custno > '11':
  • D. SELECT * FROM custjrans WHERE transdate='01-JANUARY-07':
  • E. SELECT custno - 'A' FROM custjrans WHERE transamt > 2000:

Answer: ACD

NEW QUESTION 12
You created an ORDERS table with the following description: Exhibit:
1Z0-051 dumps exhibit
You inserted some rows in the table. After some time, you want to alter the table by creating the PRIMARY KEY constraint on the ORD_ID column.
Which statement is true in this scenario?

  • A. You cannot add a primary key constraint if data exists in the column
  • B. You can add the primary key constraint even if data exists, provided that there are no duplicate values
  • C. The primary key constraint can be created only a the time of table creation
  • D. You cannot have two constraints on one column

Answer: B

NEW QUESTION 13
Which two statements are true regarding indexes? (Choose two.)

  • A. They can be created on tables and cluster
  • B. They can be created on tables and simple view
  • C. You can create only one index by using the same column
  • D. You can create more than one index by using the same columns if you specify distinctly different combinations of the column

Answer: AD

NEW QUESTION 14
Which two statements are true regarding tables? (Choose two.)

  • A. A table name can be of any lengt
  • B. A table can have any number of column
  • C. A column that has a DEFAULT value cannot store null value
  • D. A table and a view can have the same name in the same schem
  • E. A table and a synonym can have the same name in the same schem
  • F. The same table name can be used in different schemas in the same databas

Answer: EF

Explanation:
Synonyms Synonyms are database objects that enable you to call a table by another name. You can create synonyms to give an alternative name to a table.

NEW QUESTION 15
View the Exhibit and examine the data in the PROMOTIONS table.
1Z0-051 dumps exhibit
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.)

  • A. SELECT promo_category FROM promotions MINUS SELECT promo_category FROM promotions WHERE promo_subcategory = 'discount';
  • B. SELECT promo_category FROM promotions INTERSECT SELECT promo_category FROM promotions WHERE promo_subcategory = 'discount';
  • C. SELECT promo_category FROM promotions MINUS SELECT promo_category FROM promotions WHERE promo_subcategory <> 'discount';
  • D. SELECT promo_category FROM promotions INTERSECT SELECT promo_category FROM promotions WHERE promo_subcategory <> 'discount';

Answer: AD

NEW QUESTION 16
View the Exhibit and examine the structure of the SALES and PRODUCTS tables.
1Z0-051 dumps exhibit
In the SALES table, PROD_ID is the foreign key referencing PROD_ID in the PRODUCTS table. You want to list each product ID and the number of times it has been sold.
Evaluate the following query:
SQL>SELECT p.prod_id, COUNT(s.prod_id)
FROM products p _____________ sales s
ON p.prod_id = s.prod_id
GROUP BY p.prod_id;
Which two JOIN options can be used in the blank in the above query to get the required output? (Choose two.)

  • A. JOIN
  • B. FULL OUTER JOIN
  • C. LEFT OUTER JOIN
  • D. RIGHT OUTER JOIN

Answer: BC

Recommend!! Get the Full 1Z0-051 dumps in VCE and PDF From Surepassexam, Welcome to Download: https://www.surepassexam.com/1Z0-051-exam-dumps.html (New 292 Q&As Version)