Is it possible to make a query which selects one record that has the player_type 'IF' and 10 records that has the player_type 'Gold' which is ordered by 'cardweight' field / rand() desc? Thanks. Below are some attached screenshots of my table showing of some the player_type 'IF' and 'Gold' records.
Records with player_type as 'IF'
Records with Player Type as 'Gold'
essentially, I would like to combine
SELECT *
FROM `my_players`
WHERE `player_type` = 'Gold'
ORDER BY cardweight / RAND( ) DESC
LIMIT 0 , 10
and
SELECT *
FROM `my_players`
WHERE `player_type` = 'IF'
ORDER BY cardweight / RAND( ) DESC
LIMIT 0 , 1
in one query that can be ran at once if possible.
union alldoes or does not meet your needs.