I have this:
SELECT count(*) as total_chamadas from ticket WHERE userid = 'root';
SELECT count(*) as total_chamadas_tday from ticket WHERE userid = 'root' AND date(DataCriacao) = CURDATE();
How can I do to execute these two segments and return:
+----------------+---------------------+
| total_chamadas | total_chamadas_tday |
+----------------+---------------------+
| 10 | 5 |
+----------------+---------------------+