Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Oracle Database SQL Expert

Rating
-
Sold
-
Pages
91
Grade
A+
Uploaded on
05-08-2024
Written in
2024/2025

Question: 1 168 You need to load information about new customers from the NEW_CUST table into the tables CUST and CUST_SPECIAL. If a new customer has a credit limit greater than 10,000, then the details have to be inserted into CUST_SPECIAL. All new customer details have to be inserted into the CUST table. Which technique should be used to load the data most efficiently? A. external table B. the MERGE command C. the multitable INSERT command D. INSERT using WITH CHECK OPTION Answer: C Question: 2 View the Exhibit and examine the description of the CUSTOMERS table. You want to add a constraint on the CUST_FIRST_NAME column of the CUSTOMERS table so that the value inserted in the column does not have numbers. Which SQL statement would you use to accomplish the task? A. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name CHECK(REGEXP_LIKE(cust_first_name,'^A-Z'))NOVALIDATE ; B. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name CHECK(REGEXP_LIKE(cust_first_name,'^[0-9]'))NOVALIDATE ; C. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name CHECK(REGEXP_LIKE(cust_first_name,'[[:alpha:]]'))NOVALIDATE ; D. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name CHECK(REGEXP_LIKE(cust_first_name,'[[:digit:]]'))NOVALIDATE ; Answer: C Question: 3 Which three tasks can be performed using regular expression support in Oracle Database 10g? (Choose three.) Page 1 of 91 Oracle Database SQL Expert Exam Name: Exam Type Oracle 1Z0-047 Exam Code: Total Questions: A. It can be used to concatenate two strings. B. It can be used to find out the total length of the string.

Show more Read less
Institution
Oracle Database SQL Expert
Course
Oracle Database SQL Expert

Content preview

Exam Name: Oracle Database SQL Expert
Exam Type Oracle
Exam Code: 1Z0-047 Total Questions: 168

Question: 1
You need to load information about new customers from the NEW_CUST table into the tables
CUST and CUST_SPECIAL. If a new customer has a credit limit greater than 10,000, then the
details have to be inserted into CUST_SPECIAL. All new customer details have to be inserted
into the CUST table. Which technique should be used to load the data most efficiently?

A. external table
B. the MERGE command
C. the multitable INSERT command
D. INSERT using WITH CHECK OPTION

Answer: C

Question: 2
View the Exhibit and examine the description of the CUSTOMERS table.




You want to add a constraint on the CUST_FIRST_NAME column of the CUSTOMERS table so
that the value inserted in the column does not have numbers.
Which SQL statement would you use to accomplish the task?

A. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name
CHECK(REGEXP_LIKE(cust_first_name,'^A-Z'))NOVALIDATE ;
B. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name
CHECK(REGEXP_LIKE(cust_first_name,'^[0-9]'))NOVALIDATE ;
C. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name
CHECK(REGEXP_LIKE(cust_first_name,'[[:alpha:]]'))NOVALIDATE ;
D. ALTER TABLE CUSTOMERS ADD CONSTRAINT cust_f_name
CHECK(REGEXP_LIKE(cust_first_name,'[[:digit:]]'))NOVALIDATE ;

Answer: C

Question: 3
Which three tasks can be performed using regular expression support in Oracle Database 10g?
(Choose three.)

Page 1 o f 9 1

,Exam Name: Oracle Database SQL Expert
Exam Type Oracle
Exam Code: 1Z0-047 Total Questions: 168



A. It can be used to concatenate two strings.
B. It can be used to find out the total length of the string.
C. It can be used for string manipulation and searching operations.
D. It can be used to format the output for a column or expression having string data.
E. It can be used to find and replace operations for a column or expression having string data.

Answer: C, D, E

Question: 4
View the Exhibit and examine the structure of the EMP table which is not partitioned and not an
index-organized table.




Evaluate the following SQL statement:
ALTER TABLE emp
DROP COLUMN first_name;
Which two statements is true regarding the above command? (Choose two.)

A. The FIRST_NAME column would be dropped provided it does not contain any data.
B. The FIRST_NAME column would be dropped provided at least one or more columns remain in
the table.
C. The FIRST_NAME column can be rolled back provided the SET UNUSED option is added to
the above SQL statement.
D. The FIRST_NAME column can be dropped even if it is part of a composite PRIMARY KEY
provided the CASCADE option is used.

Answer: B, D

Question: 5
Evaluate the CREATE TABLE statement:
CREATE TABLE products
(product_id NUMBER(6) CONSTRAINT prod_id_pk PRIMARY KEY,
product_name VARCHAR2(15));
Which statement is true regarding the PROD_ID_PK constraint?

A. It would be created only if a unique index is manually created first.
B. It would be created and would use an automatically created unique index.
C. It would be created and would use an automatically created no unique index.
D. It would be created and remains in a disabled state because no index is specified in the
command.

Answer: B

Question: 6

Page 2 o f 9 1

,Exam Name: Oracle Database SQL Expert
Exam Type Oracle
Exam Code: 1Z0-047 Total Questions: 168

Which two statements are true? (Choose two.)

A. The USER_SYNONYMS view can provide information about private synonyms.
B. The user SYSTEM owns all the base tables and user-accessible views of the data dictionary.
C. All the dynamic performance views prefixed with V$ are accessible to all the database users.
D. The USER_OBJECTS view can provide information about the tables and views created by the
user only.
E. DICTIONARY is a view that contains the names of all the data dictionary views that the user
can access.

Answer: A, E

Question: 7
View the Exhibit and examine the description of the ORDERS table.




Which two WHERE clause conditions demonstrate the correct usage of conversion functions?
(Choose two.)

A. WHERE order_date > TO_DATE('JUL 10 2006','MON DD YYYY')
B. WHERE TO_CHAR(order_date,'MON DD YYYY') = 'JAN 20 2003'
C. WHERE order_date > TO_CHAR(ADD_MONTHS(SYSDATE,6),'MON DD YYYY')
D. WHERE order_date IN ( TO_DATE('Oct 21 2003','Mon DD YYYY'), TO_CHAR('NOV 21
2003','Mon DD YYYY') )

Answer: A, B

Question: 8
View the Exhibit and examine the description of the EMPLOYEES table.




Page 3 o f 9 1

, Exam Name: Oracle Database SQL Expert
Exam Type Oracle
Exam Code: 1Z0-047 Total Questions: 168




Your company decided to give a monthly bonus of $50 to all the employees who have completed
five years in the company. The following statement is written to display the LAST_NAME,
DEPARTMENT_ID, and the total annual salary:
SELECT last_name, department_id, salary+50*12 "Annual Compensation"
FROM employees
WHERE MONTHS_BETWEEN(SYSDATE, hire_date)/12 >= 5;
When you execute the statement, the "Annual Compensation" is not computed correctly. What
changes would you make to the query to calculate the annual compensation correctly?

A. Change the SELECT clause to SELECT last_name, department_id, salary*12+50 "Annual
Compensation".
B. Change the SELECT clause to SELECT last_name, department_id, salary+(50*12) "Annual
Compensation".
C. Change the SELECT clause to SELECT last_name, department_id, (salary+50)*12 "Annual
Compensation".
D. Change the SELECT clause to SELECT last_name, department_id, (salary*12)+50 "Annual
Compensation".

Answer: C

Question: 9
Evaluate the following CREATE SEQUENCE statement:
CREATE SEQUENCE seq1
START WITH 100
INCREMENT BY 10
MAXVALUE 200
CYCLE
NOCACHE;
The sequence SEQ1 has generated numbers up to the maximum limit of 200. You issue the
following SQL statement:
SELECT seq1.nextval FROM dual;
What is displayed by the SELECT statement?

A. 1
B. 10
C. 100
D. an error

Page 4 o f 9 1

Written for

Institution
Oracle Database SQL Expert
Course
Oracle Database SQL Expert

Document information

Uploaded on
August 5, 2024
Number of pages
91
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$21.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
StudyCenter1 Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
227
Member since
2 year
Number of followers
91
Documents
3850
Last sold
4 days ago
Nursing school is hard! Im here to simply the information and make it easier!

My mission is to be your LIGHT in the dark. If you"re worried or having trouble in nursing school, I really want my notes to be your guide! I know they have helped countless others get through and thats all i want for YOU! Stay with me and you will find everything you need to study and pass any tests,quizzes abd exams!

4.3

28 reviews

5
18
4
4
3
4
2
0
1
2

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions