There is a table
+----+----------+-----+-----------+----------+
| ID | Date | ADDRESS | Expensis |
+----+----------+-----+-----------+----------+
| 1 | 10 Dec | Ahmedabad | 2000.00 |
| 2 | 10 Dec | Delhi | 1500.00 |
| 3 | 11 DEC | Delhi | 2000.00 |
| 4 | 11 DEC | Mumbai | 6500.00 |
| 5 | 13 DEC | Mumbai | 8500.00 |
| 7 | 15 Dec | Delhi | 10000.00 |
+----+----------+-----+-----------+----------+
Supposition: There are many more rows in similar format in the above table
Using this table I want to create a report which should have output something similar to below
+----+----------+-----+-----------+----------+
| Date | Ahmedabad | Mumbai | Delhi |
+----+----------+-----+-----------+----------+
| 10 Dec | 5 | 3 | 0 |
| 11 Dec | 2 | 8 | 3 |
| 12 Dec | 6 | 1 | 4 |
| 13 Dec | 0 | 7 | 6 |
| 14 Dec | 4 | 2 | 7 |
+----+----------+-----+-----------+----------+
Where the numbers under Mumbai and Delhi are the count which is calculated form this table.
Each count value in each cell can only be calculated using individual SQL query on the same table for each cell
e.g. select count(city) from abc where city='Delhi' and date='11 dec.'