Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Evaluate the following: BEGIN FOR i IN 1..10 LOOP IF I=4 OR I=6 THEN null; I:=0; ELSE I:=i+1; INSERT INTO test(result) VALUES (I); END IF;

Evaluate the following:

BEGIN

FOR i IN 1..10 LOOP

IF I=4 OR I=6 THEN null;

I:=0;

ELSE

I:=i+1;

INSERT INTO test(result)

VALUES (I);

END IF;

COMMIT;

END LOOP;

ROLL BACK;

END.

How many values will be inserted into the test table? Blank 1

NB: Write only the number.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are prime costs? Conversion costs?

Answered: 1 week ago