on 12-05-2013 1:50 PM
Hi All,
I would like to ask one thing.
Is it possible to selecet parameters or columns randomly from table ?
I am working on PAL where i want to pick parameters or columns randomly.
Picking rows randomly is ok but how to pick columns or parameters?
Please guide me.
Thanks & Regards,
Zaib
It sounds like a terrible idea, because PAL is picky about data types. But assuming that you really want to do this... 🙂
You can code dynamic SQL to create a temporary table to pass to PAL. You would transpose the columns into an array, and pick random elements from the array. Then you use:
lt_temp_table := SELECT RANDOM1, RANDOM2, RANDOM3 FROM TABLE;
And pass this into the PAL function wrapper.
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.