Got a table in mysql with the below columns and rows
Table1
-------------------------------------------------------------
date_time Place Cat 1 Cat 2 Cat 3
-------------------------------------------------------------
5/14/2019 3:54 FUJ Yes
5/14/2019 4:19 FUJ Yes Yes
5/15/2019 1:22 FUJ Yes
5/14/2019 11:08 MUM Yes Yes
5/15/2019 16:34:00 PM MUM Yes
Need help in getting a pivot table as below desired output
Places Categories 5/14/2019 5/15/2019
-------------------------------------------------------------
FUJ Cat 1 0 0
Cat 2 1 0
Cat 3 2 1
MUM Cat 1 1 0
Cat 2 1 0
Cat 3 0 1
Thank you in advance...