Gossamer Forum
Home : General : Databases and SQL :

Help with ORDER BY and expressions?

Quote Reply
Help with ORDER BY and expressions?
I'm trying to extend the code :

SELECT uid, affiliate_uid FROM user ORDER BY affiliate_uid

To bring back all matching results but first listing rows where user.affiliate_uid=$affid and then listing all remaining results (where $affid is not necessarily the maximum or the minimum value $affid can take).

Any pointers would be welcome.

Many thanks,

C
Subject Author Views Date
Thread Help with ORDER BY and expressions? ctimms 6651 Jan 29, 2003, 2:45 PM
Thread Re: [ctimms] Help with ORDER BY and expressions?
Stealth 6255 Jan 29, 2003, 8:22 PM
Thread Re: [Stealth] Help with ORDER BY and expressions?
ctimms 6293 Jan 29, 2003, 8:46 PM
Post Re: [ctimms] Help with ORDER BY and expressions?
Alex 6220 Jan 30, 2003, 1:26 AM