Consider the table demo with below data.

demo:

col1 | col2 | col3

------+------+------

1 | 10 | 100

2 | 20 | 200

3 | 30 | 300

After executing below query what would be the data present in demo table?

Note: AUTOCOMMIT is ON.

BEGIN;

Insert into demo values(4,40,400);

update demo set col2=55 where col1=2;

delete from table demo where col1=4;

END;

col1 | col2 | col3

------+------+------

1 | 10 | 100

2 | 55 | 200

3 | 30 | 300

4 | 40 | 400

col1 | col2 | col3

------+------+------

1 | 10 | 100

2 | 55 | 200

3 | 30 | 300

col1 | col2 | col3

------+------+------

1 | 10 | 100

2 | 20 | 200

3 | 30 | 300

4 | 40 | 400

col1 | col2 | col3

------+------+------

1 | 10 | 100

2 | 20 | 200

3 | 30 | 300

Verified Answer
Correct Option - d

To get all Infosys Certified PostgreSQL Associate Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram