Skip to content
Advertisement

How can I update this table by SQL?

How can I update this table (SCORE col):

To:

C-=A+B

Advertisement

Answer

In most databases you can use a correlated subquery:

There are other ways to phrase this, but those are database-dependent.

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