Subject RE: [firebird-support] Re:Query help needed
Author Rick Debay
The query

select V2 from TABLE where V1 in
(select max(V1) from TABLE where V1 <= 25)

Returns the correct results, using the following plan:

PLAN (TABLE ORDER I_V1_COLUMN_INDEX)
PLAN (TABLE INDEX (U_UNIQUE_CONSTRAINT))

However, my brain fart was worse than I thought, I've alread solved the
problem (see my response to my own post).

-----Original Message-----
From: firebird-support@yahoogroups.com
[mailto:firebird-support@yahoogroups.com] On Behalf Of Paul R. Gardner
Sent: Monday, February 05, 2007 2:45 PM
To: firebird-support@yahoogroups.com
Subject: [firebird-support] Re:Query help needed

select V2 from TABLE where V1 in
(select max(V1) from TABLE where V1 <= 25)


[Non-text portions of this message have been removed]



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Resources item on the
main (top) menu. Try Knowledgebase and FAQ links !

Also search the knowledgebases at http://www.ibphoenix.com

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Yahoo! Groups Links




Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.