Hello, please help me on this. I want to select from these table,
table name: User
| Register_date |
---------------
| 2015-02-04 |
| 2015-02-04 |
| 2015-02-14 |
| 2015-03-14 |
| 2015-04-04 |
| 2015-04-14 |
table name: Reservation
| Order_date | Amount |
----------- | ------ |
| 2015-02-13 | 24.15 |
| 2015-02-13 | 12.00 |
| 2015-02-16 | 14.12 |
| 2015-03-02 | 17.01 |
| 2015-03-14 | 18.25 |
| 2015-04-14 | 19.24 |
And i want to create a table like this for whole year
| Year | Month | Total_Register | Total_order | Total_Income |
| ---- | ----- | -------------- | ----------- | ------------ |
| 2015 | 01 | 0 | 0 | 0 |
| 2015 | 02 | 3 | 3 | 50.27 |
| 2015 | 03 | 1 | 2 | 35.26 |
| 2015 | 04 | 2 | 1 | 19.24 |
| 2015 | 05 | 0 | 0 | 0 |
| 2015 | 06 | 0 | 0 | 0 |
| 2015 | 07 | 0 | 0 | 0 |
| 2015 | 08 | 0 | 0 | 0 |
| 2015 | 09 | 0 | 0 | 0 |
| 2015 | 10 | 0 | 0 | 0 |
| 2015 | 11 | 0 | 0 | 0 |
| 2015 | 12 | 0 | 0 | 0 |
How should i do?