Jump to content

Order By, may I filter?


Darkness Soul

Recommended Posts

Yo,

I have a col, VIP, and this one have my order method.. 'a', 'b', 'c'.

I need to, randomize the data, after, order the randomized by this vip col.. after, i want to order the 'c' row by ASC, like this idea:

    ORDER BY
      RAND() ,
      vip DESC ,
      nome_fantasia ASC ( WHERE vip = 'c' )

Some solution?

Thanks,

D.Soul
Link to comment
https://forums.phpfreaks.com/topic/15073-order-by-may-i-filter/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.