Skip to content
Advertisement

Updating a column across the table going in loop, how do avoid?

Below update statement is running in a loop, how do i avoid this?

I have 86Million rows in the table

Table Data as below

Desired table should be

Thank you,

Yum

Advertisement

Answer

Assuming that your query runs, you seem to need a where clause. I would speculate:

Note that I removed gw from the group by. It is used as the argument to an aggregation function, so I’m guessing is should not also be a gropu by key.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement