I need to update the value in a column for 50% of the records in the table. I need to use a single sql for this. I am using the following but it does not work.
update a
set column_name = 'xxxxx'
where acct in
(
sel acct from a
sample .50
)
It fails with a message saying that I cannot use sample in a subquery.
Does anybody know of a way to do this?
Thanks,
Pramod
update a
set column_name = 'xxxxx'
where acct in
(
sel acct from a
sample .50
)
It fails with a message saying that I cannot use sample in a subquery.
Does anybody know of a way to do this?
Thanks,
Pramod