The goal is to variate price over a large range of numbers to be able to plot a figure. My current query returns one row with name and a default price.
I tried adding an increment variable:
select
name, price*row_number from
(select
name,
price,
@rownum := @rownum+1 as row_number
from portfolio)dt
cross join (select @rownum := 0) r
However this (obviously) still returns just one row, while output should be multiple iterations using different values for row_number.