Skip to content
Advertisement

Compare SQL scalar function result to a column in SQL

I have this query

Here I need to compare the result of function i.e dbo.GetTopEmployerName() with x4.code.

I need to check if they are not same.

Advertisement

Answer

Wrap your query up in a derived table:

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