|
aMy advice...more
Don't do it. SQL doesn't really support "Position To", instead it's
"Search/Subset By"
Really? What about the following?
where db_column >= :search
Lot's of posts over the years detailing the hoops needed in SQL to do
ifposition to (and provide the exact functionality you have now). Notreally
worth the effort IMO.
I don't see any hoops in doing the example above. The only challenge is
there's nothing that matches and you want to display the previous record
as well as those that are greater than the search criteria.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.