Preview

Oracle Database: SQL Fundamentals

Powerful Essays
Open Document
Open Document
12451 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Oracle Database: SQL Fundamentals
Exam Name:
Exam Type:
Exam Code:

Oracle Database: SQL Fundamentals
Oracle
1Z0-051

Total Questions

114

Question: 1
Which statement is true regarding the INTERSECT operator?
A. It ignores NULL values.
B. Reversing the order of the intersected tables alters the result.
C. The names of columns in all SELECT statements must be identical.
D. The number of columns and data types must be identical for all SELECT statements in the query. Answer: D
Question: 2
Which three statements are true regarding the data types in Oracle Database 0g/11g? (Choose three.) A. Only one LONG column can be used per table.
B. A TIMESTAMP data type column stores only time values with fractional seconds.
C. The BLOB data type column is used to store binary data in an operating system file.
D. The minimum column width that can be specified for a VARCHAR2 data type column is one.
E. The value for a CHAR data type column is blank-padded to the maximum defined column width. Answer: A, D, E
Question: 3
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 programs; Answer: A, D
Question: 4
View the Exhibit and examine the structure of the PROMOTIONS table.
Which two SQL statements would execute successfully? (Choose two.)

Page 1 of 59

Exam Name:
Exam Type:
Exam Code:

Oracle Database: SQL Fundamentals
Oracle
1Z0-051

Total Questions

114

A. UPDATE promotions
SET promo_cost = promo_cost+ 100
WHERE TO_CHAR(promo_end_date, 'yyyy') > '2000';
B. SELECT

You May Also Find These Documents Helpful

Related Topics