I have a table with column_1, column_2, column_3, and select it by:
SELECT
column_1,
column_2,
column_3
From
table
What I want is to add an extra column 'hour', it would have 24 possible values from 0 to 23. The outcome is to have every row [column_1, column_2, column_3] repeated 24 times with all possible 24 values of the extra column hour:
column_1, column_2, column_3, hour
'aaa', 'bbb', 'ccc', 0
'aaa', 'bbb', 'ccc', 1
...
How should I do it?