Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

PostgreSQL PGCES-02 Exam - Topic 8 Question 85 Discussion

Posted by Olive on May 01, 2025 at 11:36 AM

You want to create a cursor that will SELECT the "customer" table. The created cursor must be able to move in any direction and reference data even after the end of the transaction. Select one answer containing the correct keyword(s) to fill in the underlined blank below. DECLARE cursor1 __________ FOR SELECT * FROM customer;

Suggested Answer: B

Get Premium PGCES-02 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
31 comments · newest first
QU
Quentin 10 months ago
I'm surprised "NO SCROLL" is even an option, that won't work!
BU
Bulah 10 months ago
B is the right choice, it allows movement in any direction.
LO
Lottie 10 months ago
Definitely B, you need SCROLL CURSOR WITH HOLD for that.
ET
Ethan 10 months ago
Wait, does "WITH HOLD" really matter here?
SH
Sheldon 10 months ago
I think A is enough, CURSOR should work fine.
BA
Barb 11 months ago
I thought "INSENSITIVE CURSOR" was for when you want to see changes made by others, but I'm not sure if that's what we need here.
UL
Ulysses 11 months ago
I practiced a similar question, and I feel like "SCROLL CURSOR" was definitely part of it, but I can't remember if it was with or without hold.
VI
Viva 11 months ago
I'm not entirely sure, but I remember something about "WITH HOLD" being important for keeping the cursor active after a transaction.
EL
Elke 11 months ago
I think the cursor needs to be able to scroll, so maybe it's option B? That sounds familiar.
CH
Chu 12 months ago
I think the answer is B - SCROLL CURSOR WITH HOLD. That seems to match the description of being able to move the cursor in any direction and maintain the data even after the transaction ends. I'm pretty confident in that choice.
KA
Kaitlyn 12 months ago
I'm a bit confused on this one. There are a few different cursor options, and I'm not sure which one is the best fit for the requirements. I'll have to review my notes and try to reason through this.
QU
Quentin 12 months ago
Okay, I've got this. The answer is B - SCROLL CURSOR WITH HOLD. That will give me the ability to move the cursor in any direction and keep the data available even after the transaction is complete.
EM
Emilio 1 year ago
Hmm, I'm a little unsure about this one. I know we need to use a cursor, but I'm not sure which specific keyword to use. I'll have to think this through carefully.
FR
Francine 1 year ago
This looks like a pretty straightforward cursor question. I think the key is to identify the keywords that allow the cursor to move in any direction and reference data even after the end of the transaction.
LA
Laura 1 year ago
I think D) NO SCROLL CURSOR WITH HOLD is the best option for this scenario.
JU
Justine 1 year ago
I'm not sure, but I think C) INSENSITIVE CURSOR could also work.
GO
Goldie 1 year ago
B) SCROLL CURSOR WITH HOLD makes the most sense. I mean, who wants to be limited to just one direction, am I right?
WE
Weldon 1 year ago
↳ replying to Goldie
User 3: B) SCROLL CURSOR WITH HOLD makes sense for sure.
KE
Kendra 1 year ago
↳ replying to Goldie
User 2: A) CURSOR
CA
Carma 1 year ago
↳ replying to Goldie
User 1: B) SCROLL CURSOR WITH HOLD
EM
Emilio 1 year ago
Haha, D) NO SCROLL CURSOR WITH HOLD? What kind of nonsense is that? Clearly, B) is the way to go.
KA
Kattie 1 year ago
I believe it should be B) SCROLL CURSOR WITH HOLD.
VI
Virgie 1 year ago
Hmm, I thought A) CURSOR was the answer, but I guess I was wrong. Oh well, back to the drawing board!
AN
Andree 1 year ago
↳ replying to Virgie
User 3: D) NO SCROLL CURSOR WITH HOLD
LU
Lucy 1 year ago
↳ replying to Virgie
User 2: C) INSENSITIVE CURSOR
KA
Kanisha 1 year ago
↳ replying to Virgie
User 1: B) SCROLL CURSOR WITH HOLD
JA
Janessa 1 year ago
I think the correct keyword is A) CURSOR.
SU
Suzan 1 year ago
B) SCROLL CURSOR WITH HOLD is definitely the right answer. This allows me to move the cursor in any direction and retain the cursor even after the transaction is over.
TA
Tammy 1 year ago
↳ replying to Suzan
Great choice! SCROLL CURSOR WITH HOLD is the keyword you need for the cursor.
LI
Lindsey 1 year ago
↳ replying to Suzan
Yes, that's correct. It allows you to move the cursor in any direction and retain it after the transaction.
PE
Peggy 1 year ago
↳ replying to Suzan
I think the correct answer is B) SCROLL CURSOR WITH HOLD.
0/2000 characters

Save Cancel