Order by year, month along with cumulative sum
问题 My table "DATA123" is as follows NoticeDate------Amount 2016-02-14------60000 2015-11-06------10000 2015-12-02------10000 2016-01-13------50000 2016-01-24------10000 2015-12-29------30000 2016-01-12------20000 2015-11-18------50000 I want the output to be as Year----month----Amount----Cumulative 2015----NOV------60000------60000 2015----DEC------40000------100000 2016----JAN------80000------180000 2016----FEB------60000------240000 In short i want orderly monthly report sql query (not