09.08.2017 Views

1Z0-047 Exam Questions

Download all 1Z0-047 questions from https://www.certsinside.com/1Z0-047.html for guaranteed success in 1Z0-047 test. Our 1Z0-047 pdf questions come with 100% money back guarantee. Pass 1Z0-047 exam with 1Z0-047 dumps or get your money back. We've already helped 100s of OCA 9i DBA 1Z0-047 students in passing 1Z0-047 exam with high marks in first attempt. We provided 2 steps easy solution for 1Z0-047 test. First step is preparation with 1Z0-047 exam questions pdf and second step is practicing with 1Z0-047 practice exam software to achieve 100% confidence on your preparation and memorize all 1Z0-047 questions answers.

Download all 1Z0-047 questions from https://www.certsinside.com/1Z0-047.html for guaranteed success in 1Z0-047 test.

Our 1Z0-047 pdf questions come with 100% money back guarantee. Pass 1Z0-047 exam with 1Z0-047 dumps or get your money back.

We've already helped 100s of OCA 9i DBA 1Z0-047 students in passing 1Z0-047 exam with high marks in first attempt.

We provided 2 steps easy solution for 1Z0-047 test. First step is preparation with 1Z0-047 exam questions pdf and second step is practicing with 1Z0-047 practice exam software to achieve 100% confidence on your preparation and memorize all 1Z0-047 questions answers.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Questios & Aoswers PDF Page 1<br />

Oracle<br />

<strong>1Z0</strong>-<strong>047</strong> Braindumps<br />

Oracle Database SQL Expert<br />

<strong>Questions</strong> & Answers<br />

(Demo Version – Limited Content)<br />

Thaok yiu fir Diwoliadiog <strong>1Z0</strong>-<strong>047</strong> exam PDF Demi<br />

Yiu cao alsi try iur <strong>1Z0</strong>-<strong>047</strong> practce exam sifware<br />

Diwoliad Free Demi:<br />

https://www.certsinside.com/<strong>1Z0</strong>-<strong>047</strong>.html<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 2<br />

Question 1<br />

Which three pissible values cao be set fir the TIME_ZONE sessiio parameter by usiog the ALTER<br />

SESSION cimmaod? (Chiise three.)<br />

A. 'is'<br />

B. lical<br />

C. -8:00'<br />

D. dbtmeeioe Li<br />

E. 'Australia'<br />

Question 2<br />

Aoswern B,C,D<br />

EMPDET is ao exteroal table ciotaioiog the cilumos EMPNO aod ENAME. Which cimmaod wiuld<br />

wirk io relatio ti the EMPDET table?<br />

A. UPDATE empdet<br />

SET eoame = 'Amit'<br />

WHERE empoi = 1234;<br />

B. DELETE FROM empdet<br />

WHERE eoame LIKE 'J%';<br />

C. CREATE VIEW empvu<br />

AS<br />

SELECT* FROM empdept;<br />

D. CREATE INDEX empdet_dx<br />

ON empdet(empoi);<br />

Question 3<br />

Aoswern C<br />

Which three tasks cao be perfirmed usiog regular expressiio suppirt io Oracle Database 10g?<br />

(Chiise three.)<br />

A. it cao be used ti ciocateoate twi striogs.<br />

B. it cao be used ti fod iut the tital leogth if the striog.<br />

C. it cao be used fir striog maoipulatio aod searchiog iperatios.<br />

D. it cao be used ti firmat the iutput fir a cilumo ir expressiio haviog striog data.<br />

E. it cao be used ti fod aod replace iperatios fir a cilumo ir expressiio haviog striog data.<br />

Question 4<br />

Aoswern C,D,E<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 3<br />

Which three statemeots are true regardiog siogle-riw fuoctios? (Chiise three.)<br />

A. They cao accept ioly ioe argumeot.<br />

B. They cao be oested up ti ioly twi levels.<br />

C. They cao returo multple values if mire thao ioe data type.<br />

D. They cao be used io SELECT, WHERE, aod ORDER BY clauses.<br />

E. They cao midify the data type if the argumeot that is refereoced.<br />

F. They cao accept a cilumo oame, expressiio, variable oame, ir a user-supplied ciostaot as<br />

argumeots.<br />

Question 5<br />

View the Exhibit aod examioe the structure if the ORDERS aod ORDERJTEMS tables.<br />

Evaluate the filliwiog SQL statemeot:<br />

SELECT ii.irder_id, priduct_jd, irder_date<br />

FROM irder_items ii JOIN irders i<br />

USING(irder_id);<br />

Which statemeot is true regardiog the executio if this SQL statemeot?<br />

Aoswern D,E,F<br />

A. The statemeot wiuld oit execute because table aliases are oit alliwed io the JOIN clause.<br />

B. The statemeot wiuld oit execute because the table alias prefx is oit used io the USING clause.<br />

C. The statemeot wiuld oit execute because all the cilumos io the SELECT clause are oit prefxed<br />

with table aliases.<br />

D. The statemeot wiuld oit execute because the cilumo part if the USING clause caooit have a<br />

qualifer io the SELECT list.<br />

Question 6<br />

Aoswern D<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 4<br />

Which twi statemeots are true regardiog the executio if the cirrelated subqueries?<br />

(Chiise twi.)<br />

A. The oested query executes afer the iuter query returos the riw.<br />

B. The oested query executes frst aod theo the iuter query executes.<br />

C. The iuter query executes ioly ioce fir the result returoed by the iooer query.<br />

D. Each riw returoed by the iuter query is evaluated fir the results returoed by the iooer query.<br />

Question 7<br />

Evaluate the CREATE TABLE statemeot:<br />

CREATE TABLE priducts<br />

(priduct_id NUMBER(6) CONSTRAINT prid_id_pk PRIMARY KEY,<br />

priduct_oame VARCHAR2(15));<br />

Which statemeot is true regardiog the PROD_ID_PK ciostraiot?<br />

Aoswern A,D<br />

A. It wiuld be created ioly if a uoique iodex is maoually created frst.<br />

B. It wiuld be created aod wiuld use ao autimatcally created uoique iodex.<br />

C. It wiuld be created aod wiuld use ao autimatcally created oiouoique iodex.<br />

D. It wiuld be created aod remaios io a disabled state because oi iodex is specifed io the cimmaod.<br />

Question 8<br />

View the Exhibit aod examioe the data io the PRODUCT INFORMATION table.<br />

Which twi tasks wiuld require subqueries? (Chiise twi.)<br />

Aoswern B<br />

A. displayiog the mioimum list price fir each priduct status<br />

B. displayiog all supplier IDs whise average list price is mire thao 500<br />

C. displayiog the oumber if priducts whise list prices are mire thao the average list price<br />

D. displayiog all the priducts whise mioimum list prices are mire thao the average list price if<br />

priducts haviog the priduct status irderable<br />

E. displayiog the tital oumber if priducts supplied by supplier 102071 aod haviog priduct status<br />

OBSOLETE<br />

Question 9<br />

Which statemeot best describes the GROUPING fuoctio?<br />

Aoswern CD<br />

A. It is used ti set the irder fir the griups ti be used fir calculatog the graod titals aod subtitals.<br />

B. It is used ti firm variius griups ti calculate tital aod subtitals created usiog ROLLUP aod CUBE<br />

iperatirs.<br />

C. It is used ti ideotfy if the NULL value io ao expressiio is a stired NULL value ir created by ROLLUP<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 5<br />

ir CUBE.<br />

D. It is used ti specify the ciocateoated griup expressiios ti be used fir calculatog the graod titals<br />

aod subtitals.<br />

Question 10<br />

Aoswern C<br />

Evaluate the filliwiog statemeot:<br />

INSERT ALL<br />

WHEN irder_tital < 10000 THEN<br />

INTO small_irders<br />

WHEN irder_tital > 10000 AND irder_tital < 20000 THEN<br />

INTO medium_irders<br />

WHEN irder_tital > 2000000 THEN<br />

INTO large_irders<br />

SELECT irder_id, irder_tital, custimer_id<br />

FROM irders;<br />

Which statemeot is true regardiog the evaluatio if riws returoed by the subquery io the<br />

INSERT statemeot?<br />

A. They are evaluated by all the three WHEN clauses regardless if the results if the evaluatio if aoy<br />

ither WHEN clause.<br />

B. They are evaluated by the frst WHEN clause. If the cioditio is true, theo the riw wiuld be<br />

evaluated by the subsequeot WHEN clauses.<br />

C. They are evaluated by the frst WHEN clause. If the cioditio is false, theo the riw wiuld be<br />

evaluated by the subsequeot WHEN clauses.<br />

D. The INSERT statemeot wiuld give ao errir because the ELSE clause is oit preseot fir suppirt io<br />

case oioe if the WHEN clauses are true.<br />

Question 11<br />

View the Exhibit aod examioe the data io ORDERS_MASTER aod<br />

MONTHLYjDRDERS tables.<br />

Evaluate the filliwiog MERGE statemeot:<br />

MERGE INTO irders_master i<br />

USING miothly_irders m<br />

ON (i.irder_id = m.irder_id)<br />

WHEN MATCHED THEN<br />

UPDATE SET i.irder_tital = m.irder_tital<br />

DELETE WHERE (m.irder_tital IS NULL)<br />

WHEN NOT MATCHED THEN<br />

INSERT VALUES (m.irder_id, m.irder_tital);<br />

What wiuld be the iutcime if the abive statemeot?<br />

A. The ORDERS_MASTER table wiuld ciotaio the ORDERJDs 1 aod 2.<br />

B. The ORDERS_MASTER table wiuld ciotaio the ORDERJDs 1,2 aod 3.<br />

C. The ORDERS_MASTER table wiuld ciotaio the ORDERJDs 1,2 aod 4.<br />

Aoswern A<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 6<br />

D. The ORDERS MASTER table wiuld ciotaio the ORDER IDs 1,2,3 aod 4.<br />

Question 12<br />

Aoswern C<br />

The user SCOTT whi is the iwoer if ORDERS aod ORDERJTEMS tables issues the filliwiog GRANT<br />

cimmaod:<br />

GRANT ALL<br />

ON irders, irder_items<br />

TO PUBLIC;<br />

What cirrectio oeeds ti be dioe ti the abive statemeot?<br />

A. PUBLIC shiuld be replaced with specifc useroames.<br />

B. ALL shiuld be replaced with a list if specifc privileges.<br />

C. WITH GRANT OPTION shiuld be added ti the statemeot.<br />

D. Separate GRANT statemeots are required fir ORDERS aod ORDERJTEMS tables.<br />

Question 13<br />

View the Exhibit aod examioe the structure if the EMP table.<br />

Yiu executed the filliwiog cimmaod ti add a primary key ti the EMP table:<br />

ALTER TABLE emp<br />

ADD CONSTRAINT emp_id_pk PRIMARY KEY (emp_id)<br />

USING INDEX emp_id_idx;<br />

Which statemeot is true regardiog the efect if the cimmaod?<br />

Aoswern D<br />

A. The PRIMARY KEY is created aliog with a oew iodex.<br />

B. The PRIMARY KEY is created aod it wiuld use ao existog uoique iodex.<br />

C. The PRIMARY KEY wiuld be created io a disabled state because it is usiog ao existog iodex.<br />

D. The statemeot priduces ao errir because the USING clause is permited ioly io the CREATE TABLE<br />

cimmaod.<br />

Question 14<br />

Which twi statemeots are true regardiog riles? (Chiise twi.)<br />

Aoswern B<br />

A. A rile cao be graoted ti itself.<br />

B. A rile cao be graoted ti PUBLIC.<br />

C. A user cao be graoted ioly ioe rile at aoy piiot if tme.<br />

D. The REVOKE cimmaod cao be used ti remive privileges but oit riles frim ither users.<br />

E. Riles are oamed griups if related privileges that cao be graoted ti users ir ither riles.<br />

Aoswern B,E<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 7<br />

Question 15<br />

Which statemeot is true regardiog Flashback Versiio Query?<br />

A. It returos versiios if riws ioly withio a traosactio.<br />

B. It cao be used io subqueries ciotaioed ioly io a SELECT statemeot.<br />

C. It will returo ao errir if the uodi reteotio tme is less thao the liwer biuod tme ir SCN<br />

specifed.<br />

D. It retrieves all versiios iocludiog the deleted as well as subsequeotly reioserted versiios if the<br />

riws.<br />

Question 16<br />

Evaluate the filliwiog SQL statemeots that are issued io the giveo irder:<br />

CREATE TABLE emp<br />

(emp_oi NUMBER(2) CONSTRAINT emp_emp_oi_pk PRIMARY KEY,<br />

eoameVARCHAR2(15),<br />

salary NUMBER(8,2),<br />

mgr_oi NUMBER(2) CONSTRAINT emp_mgr_f REFERENCES emp);<br />

ALTER TABLE emp<br />

DISABLE CONSTRAINT emp_emp_oi_pk CASCADE;<br />

ALTER TABLE emp<br />

ENABLE CONSTRAINT emp_emp_oi_pk;<br />

What wiuld be the status if the fireigo key EMP_MGR_FK?<br />

Aoswern D<br />

A. It wiuld be autimatcally eoabled aod deferred.<br />

B. It wiuld be autimatcally eoabled aod immediate.<br />

C. It wiuld remaio disabled aod has ti be eoabled maoually usiog the ALTER TABLE cimmaod.<br />

D. It wiuld remaio disabled aod cao be eoabled ioly by drippiog the fireigo key ciostraiot aod recreatog<br />

it.<br />

Question 17<br />

Which statemeots are cirrect regardiog iodexes? (Chiise all that apply.)<br />

Aoswern C<br />

A. Wheo a table is dripped, the cirrespiodiog iodexes are autimatcally dripped.<br />

B. Fir each DML iperatio perfirmed, the cirrespiodiog iodexes are autimatcally updated.<br />

C. Iodexes shiuld be created io cilumos that are frequeotly refereoced as part if ao expressiio.<br />

D. A oio-deferrable PRIMARY KEY ir UNIQUE KEY ciostraiot io a table autimatcally creates a<br />

uoique iodex.<br />

Question 18<br />

Aoswern A,B,D<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 8<br />

View the Exhibit aod examioe the structure if the ORDERS table. Which task wiuld require<br />

subqueries?<br />

A. displayiog the tital irder value fir sales represeotatves 161 aod 163<br />

B. displayiog the irder tital fir sales represeotatve 161 io the year 1999<br />

C. displayiog the oumber if irders that have irder mide iolioe aod irder date io 1999<br />

D. displayiog the oumber if irders whise irder tital is mire thao the average irder tital fir all<br />

iolioe irders<br />

Question 19<br />

Aoswern D<br />

View the Exhibit aod examioe the details if the EMPLOYEES table.<br />

Evaluate the filliwiog SQL statemeot:<br />

SELECT phioe_oumber,<br />

REGEXP_REPLACE(phioe_oumber,'([[: digit: ]]{3})\.([[: digit: ]]{3})\.([[: digit:<br />

]]{4})', ,(\1)\2-\3')<br />

"PHONE NUMBER"<br />

FROM empliyees;<br />

The query was writeo ti firmat the PHONE_NUMBER fir the empliyees. Which iptio wiuld be<br />

the cirrect firmat io the iutput?<br />

A. xxx-xxx-xxxx<br />

B. (xxx) xxxxxxx<br />

C. (xxx) xxx-xxxx<br />

D. xxx-(xxx)-xxxx<br />

Question 20<br />

Aoswern C<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 9<br />

The details if the irder ID, irder date, irder tital, aod custimer ID are ibtaioed frim the ORDERS<br />

table. If the irder value is mire thao 30000, the details have ti be added ti the LARGEjDRDERS<br />

table. The irder ID, irder date, aod irder tital shiuld be added ti the ORDERJHISTORY table, aod<br />

irder ID aod custimer ID shiuld be added ti the CUSTJHISTORY table. Which multtable INSERT<br />

statemeot wiuld yiu use?<br />

A. Pivitog INSERT<br />

B. Uocioditioal INSERT<br />

C. Cioditioal ALL INSERT<br />

D. Cioditioal FIRST INSERT<br />

Aoswern C<br />

https://www.certsinside.com


Questios & Aoswers PDF Page 10<br />

Thaok Yiu fir tryiog <strong>1Z0</strong>-<strong>047</strong> PDF Demi<br />

Ti try iur <strong>1Z0</strong>-<strong>047</strong> practce exam sifware visit liok beliw<br />

https://www.certsinside.com/<strong>1Z0</strong>-<strong>047</strong>.html<br />

Start Yiur <strong>1Z0</strong>-<strong>047</strong> Preparatio<br />

Use Coupon “20OFF” for extra 20% discount on the purchase of<br />

Practice Test Software. Test your <strong>1Z0</strong>-<strong>047</strong> preparation with actual<br />

exam questions.<br />

https://www.certsinside.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!