I have a simple query that pull in only one row of results, in columns. I want the results to show in rows instead of columns.
My example query looks like this:
select *
from mydatabase
results show like this:
2021 2022 2023 2024
I want them to show like this:
2021
2022
2023
2024
when I try a Row_Number function I just get the same column results but with a '1' now added
select *
,ROW_NUMBER()over(order by(select 1)) as number
from mydatabase
shows results as:
2021 2022 2023 2024 number