begin select stragg('amount * ' || level || ' "' || level || '",') select_list from sys.dual connect by level <= &&user_input / select title "Title", amount "Amount", &select_list amount * (&&user_input + 1) * &&user_input / 2 "Total" from test; / end;