SELECT COUNT(*) FROM a WHERE year = 2016 && month = 5 && date = 17 && user = 1
//return 1 row
SELECT COUNT(*) FROM a WHERE year = 2016 && month = 5 && date = 17 && user = 2
//return 0 row
I have 2 queries, I need to check user 1 and user 2, user 1 must have 1 row & user 2 must 0 row
My question is: is that possible to merge these 2 queries together
return in 1 row with 2 columns //return 1, 0