PGCES-02 · Question #142
The table "t1" is defined below. The column "id" for table "t1" is of INTEGER type. id | name ----+------------ 1 | mammoth 2 | tortoise 3 | coelacanth PostgreSQL CE PGCES-02 Exam The following SQL…
The correct answer is B. The number of rows returned by the FETCH statement is 1. Exam Questions, Study Guides, Practice Tests. Lead the way to help you pass any IT Certification exams, 100% Pass Guaranteed or Full Refund. Especially Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. Our Slogan: First Test…
Question
The table "t1" is defined below. The column "id" for table "t1" is of INTEGER type. id | name ----+------------ 1 | mammoth 2 | tortoise 3 | coelacanth PostgreSQL CE PGCES-02 Exam The following SQL statements were executed. Select the correct statement about the execution result. BEGIN; DECLARE c SCROLL CURSOR FOR SELECT name FROM t1 ORDER BY id; MOVE FORWARD 2 FROM c; FETCH FORWARD ALL FROM c; COMMIT;
Options
- AThe number of rows returned by the FETCH statement is 0.
- BThe number of rows returned by the FETCH statement is 1.
- CThe number of rowsreturned by the FETCH statement is 2.
- DThe number of rowsreturned by the FETCH statement is 3.
- EAn error occurs part way through.
How the community answered
(23 responses)- B70% (16)
- C9% (2)
- D4% (1)
- E17% (4)
Explanation
Exam Questions, Study Guides, Practice Tests. Lead the way to help you pass any IT Certification exams, 100% Pass Guaranteed or Full Refund. Especially Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. Our Slogan: First Test, First Pass. Help you to pass any IT Certification exams at the first try. You can reach us at any of the email addresses listed below. Any problems about IT certification or our products, you could rely upon us, we will give you satisfactory answers in 24 hours.
Topics
Community Discussion
No community discussion yet for this question.