mardi 25 septembre 2018

MySql : Get two random rows with different value

I have this table : enter image description here

I want two get 2 random rows on condition be published and have different location values ( exemple : if the first row is vertical , the second must be horizontal)

Thanks !




Aucun commentaire:

Enregistrer un commentaire