Not sure how to put this in a straight forward manner but I'm trying to make something work in Hive SQL. I need to create a sequence of numbers from lower limit to upper limit.
Ex:
select min(year) from table
Let's assume it results in
2010
select max(year) from table
Let's assume it results in
2015
I need to publish each year from 2010
to 2015
in a select query.
And I'm trying to put the min
calculation & max
calculation inside the same SQL which will/should create sequential years in the output.
Any ideas?