I have got one table wit users. I want to collect girls and boys and display count numbers of them. I do this:
SELECT COUNT(`is_male`) AS 'boys' FROM `users` WHERE `is_male` = 1 UNION (SELECT COUNT(`is_male`) AS 'girls' FROM `users` WHERE `is_male` = 0)
But it shows results in one column 'boys', how I can display one row with 2 columns 'boys' and 'girls'?