P
pol
Please give me an sql to generate the report from
statement table,
I have three column in my table
1. Month
2. year
3. Amount
I want to show
1. if the month is current month it should be shown as ' Current'
2. If the previous month it should be shown as '30'
3 if before previous month it should be '60'
4 if before '60' it should be '90'
5. otherwise it should be '120'
Please help
statement table,
I have three column in my table
1. Month
2. year
3. Amount
I want to show
1. if the month is current month it should be shown as ' Current'
2. If the previous month it should be shown as '30'
3 if before previous month it should be '60'
4 if before '60' it should be '90'
5. otherwise it should be '120'
Please help