I have a table that looks like this:
Month | Year | Rate
2011 | Jan | 50
2011 | Jun | 55
2011 | Nov | 53
Since this table I want use for financial calculation I need output in below format:
Month | Year | Rate
2011 | Jan | 50
2011 | Feb | 50
2011 | Mar | 50
2011 | Apr | 50
2011 | May | 50
2011 | Jun | 55
2011 | Jul | 55
2011 | Aug | 55
2011 | Sep | 55
2011 | Oct | 55
2011 | Nov | 53
2011 | Dec | 53
Any help, please
The gist of the statement goes like this
ID'sto month names.ratestable to generate each month with a either an existingrateorNULL.SELECTfrom thisFullYearRatestable and retrieve the non existing rates using a subselect on this table.SQL Script