help make a request for the award of awards for participation in the competition. It is necessary at the end of the competition to give out awards, but only to the first three who have more gifts than the other 17 have one award, for example 100, and the rest 50 each. How to do this?
SELECT ... WHERE ...
Show your request for starters - ArchDemon$table_users
where gifts> 1 order bygifts
desc limit 1,20 so I print the list - Denis Milyukov