Forums

ASP

This topic is locked

random field

Posted 09 Dec 2007 00:51:42
1
has voted
09 Dec 2007 00:51:42 jabur sad posted:
Hi Tim

Please could you help me to find a solution for the the below code
that the sort of field (ID) i need it randomly instead of DESC
I'm using mdb, asp page and i'm not proffecional in farmating codes

fullOrderBy = " ORDER BY mainoffer.Id DESC"
the code fullOrderBy i need it to use it in other part of page
Thanks

Replies

Replied 26 Dec 2007 15:43:16
26 Dec 2007 15:43:16 dave blohm replied:
SELECT <what_to_select>
FROM <table_name>
WHERE <criteria>
ORDER BY NEWID()

- Doc

Progress is made by the discontent.

Reply to this topic