Hi,
I would like to use Oracle pl/sql to generate a year, quarter and month table like this, from year 1954 to 2020. Can someone provide me the code?
thank you so much for your help!
Cathy
| Year | QTR | MONTH |
| 1954 | 195501 | 195412 |
| 1955 | 195501 | 195501 |
| 1955 | 195501 | 195502 |
| 1955 | 195502 | 195503 |
| 1955 | 195502 | 195504 |
| 1955 | 195502 | 195505 |
| 1955 | 195503 | 195506 |
| 1955 | 195503 | 195507 |
| 1955 | 195503 | 195508 |
| 1955 | 195504 | 195509 |
| 1955 | 195504 | 195510 |
| 1955 | 195504 | 195511 |
| 1956 | 195601 | 195512 |
| 2019 | 202001 | 201912 |
| 2020 | 202001 | 202001 |
| 2020 | 202001 | 202002 |
| 2020 | 202002 | 202003 |
| 2020 | 202002 | 202004 |
| 2020 | 202002 | 202005 |
| 2020 | 202003 | 202006 |
| 2020 | 202003 | 202007 |
| 2020 | 202003 | 202008 |
| 2020 | 202004 | 202009 |
| 2020 | 202004 | 202010 |
| 2020 | 202004 | 202011 |