So I am getting the values at specified columns at random rows within a table such that:
SELECT <COLUMN_NAME>
FROM ( SELECT <COLUMN_NAME>
FROM <SCHEMA>.<TABLE_NAME>
ORDER BY dbms_random.value )
WHERE rownum < <RANDOM_NUMBER>
And that works as it should. Now I want to append the data for the entire row to the result rows. For example if my table is:
Column A Column B Column C Column D
data1 data2 data3 data4
data5 data6 data7 data8
If my specified column is column B, my query returns:
data2
data6
I want it to return:
data2, data1, data2, data3, data4
data6, data5, data6, data7, data8
I'm assuming its something like SELECT < COLUMN_NAME >, * ........?