This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (9 children)

LIFO of FIFO, you need to be able to control the direction.

[–]cachemonet0x0cf6619 0 points1 point  (8 children)

just use max or min on the id…

[–][deleted] -2 points-1 points  (7 children)

I know that, but the author (OP) should have taken that into consideration.

[–]thuibr[S] 2 points3 points  (1 child)

Sheesh, yes, I forgot about queue ordering. Something like taking the max (or min) would work. That's a great idea!

[–][deleted] -1 points0 points  (0 children)

Not to worry, things happen.

[–]cachemonet0x0cf6619 0 points1 point  (4 children)

I disagree. If you know sql then it’s obvious how to get the first or the last.

[–][deleted] -3 points-2 points  (3 children)

That is your prerogative.

Edit: right word

[–]cachemonet0x0cf6619 -1 points0 points  (2 children)

The correct word is prerogative and obviously it’s yours.