Skip to content
Advertisement

An expression of non-boolean type specified in a context where a condition is expected, near ‘)’. error in SQL

I need to find matching id from two tables (client & activity), and update the data from (clientid) column in table client to the same column (id) the other table (activity):

It throws an exception

An expression of non-boolean type specified in a context where a condition is expected, near ‘)’

Advertisement

Answer

I think you want an update with join. In SQL Server, this looks like:

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