Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
LB #1
Order by Date then ID
I have a query that orders things by date. The database itself only has
dates in it, not times, so what I want to do is find items in the
database by date, then by ID - so that the latest item always comes out
first (hope that makes sense!).
Can you set the order twice within the same query?
LB
LB Guest
-
Order By Date/Time Issue
While this is more an annoyance than a problem, I'm wondering if it's something I'm doing or systematic. I'm running the query below to pull... -
JSObject returns wrong date. How can Iextract correct date from digital signature?
I'm trying to extract name and date from digital signatures by using JSObject in Excel VBA, but JSObject returns wrong date. Year, month, hour and... -
Tab Order always greyed out, need to redefine order but can't
I had a check box but then i had to delete it and change it to a text field. now my tab order is all out of whack and I can't seem to set the tab... -
Order Query Results by date
I am pulling records from an Access database and trying to order by the date. However, CF seems to be ordering the dates by the math value (i.e.... -
Updating records in order (into an order)
I'm storing questions for a user-defined quiz. I can store them in the order they are entered without any problem. But... The user needs to have... -
Steven #2
Re: Order by Date then ID
> Can you set the order twice within the same query?
I think you can.>
ORDER BY date AND id
Give it a try and you will find out.
Good luck!
--
Posted by [url]news://news.nb.nu[/url]
Steven Guest
-
LB #3
Re: Order by Date then ID
Steven wrote:
Thanks Steven,>>>Can you set the order twice within the same query?
>>
> I think you can.
>
> ORDER BY date AND id
>
> Give it a try and you will find out.
>
> Good luck!
Tried that, but doing it that way for some reason took out the date
sorting altogether (or at least seemed to). So I tried;
ORDER BY DATE ASC AND ID ASC
But that threw an error :-(
LB Guest
-
Steven #4
Re: Order by Date then ID
Hmmm try this :> Tried that, but doing it that way for some reason took out the date
> sorting altogether (or at least seemed to). So I tried;
>
> ORDER BY DATE ASC AND ID ASC
>
> But that threw an error :-(
ORDER BY date DESC, id DESC
This should work.
--
Posted by [url]news://news.nb.nu[/url]
Steven Guest



Reply With Quote

