I need to generate monotonically increasing and decreasing integer numbers of a given interval, for example (10) in one column of a table.
The desired output from top to bottom should look like:
1,2,3,4,5,6,7,8,9,10,10,9,8,7,6,5,4,3,2,1,1,2,3,4,5,6,7,8,9,10,...
Maybe using the function generate_series(1,100)
or similar?