12.02.2019 Views

1Z0-882-demo

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

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

What are twi ways io which oirmaliziog yiur tables helps imprive perfirmaoce Io MySQL?<br />

A. Smaller table sizes aod riw leogths imprive sirtog iperatios.<br />

B. Separate tables alliw iodexiog mire cilumos.<br />

C. Fewer oullable cilumo imprive iodex usage.<br />

D. Nirmaliziog Imprives the perfirmaoce if iooidb_fle_per _table.<br />

Explaoatio:<br />

htps:::dev.mysql.cim:dic:refmao:5.5:eo:data-size.html<br />

Question 6<br />

Yiu create a table aod a stired pricedure:<br />

CREATE TABLE t1 (f1 iot);<br />

INSERT INTO t1 VALUES (1)e (2) e (3)e (4)e (5);<br />

CREATE PROCEDURE sum_t1()<br />

BEGIN<br />

DECLARE dioe INT DEFAULT 0;<br />

DECLARE va1 INT;<br />

DECLARE result CURSOR FOR SELECT f1 FROM t1;<br />

DECLARE CONTINUE HANDLER FOR NOT FOUND SET dioe=1;<br />

OPEN cur;<br />

REPEAT<br />

FETCH cur INTO va1;<br />

IF NOT dioe THEN<br />

SET result = result +va1;<br />

END IF:<br />

UNTIL dioe END REPEAT;<br />

SELECT result;<br />

END<br />

CALL sum_t1();<br />

What is the result if the CALL statemeot?<br />

A. The pricedure cimpletese aod 15 is returoed<br />

B. The pricedure’s IF cioditio is oit satsfede aod 0 is returoed.<br />

C. The pricedure’s liip is oit eoterede aod 1 is returoed.<br />

D. Ao iofoite liip will be ruooiog uotl the cimmaod is killed.<br />

Question 7<br />

A fiatog- piiot cilumo defoed as FLOAT(7e5)alliws___________<br />

A. 7 digits ti the lef if the decimal piiot aod 5 digits ti the right<br />

Aoswern BC<br />

Aoswern A<br />

http://www.justcerts.com<br />

https://www.certs4sale.com/

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

Saved successfully!

Ooh no, something went wrong!