I am selecting data from multiple tables and want to insert data for missing years. Can I do this by using PLSQL or SQL ?
For example, below is output of my query:
YEAR COUNT
----- -----
2012 5
2013 6
2015 2
2016 1
2019 0
I want to add the year and count=0 for missing years and finally I should have this -
YEAR COUNT
----- -----
2012 5
2013 6
2014 0
2015 2
2016 1
2017 0
2018 0
2019 0