Skip to content
Advertisement

Condition on SQL Server query

The below SQL query is in a SQL Server 2017. I want when the value of UtenteCliente.CostoFatturazionePersonalizzato is 0 or null is configured with the value of Utente.CostoFatturazione, to do this I use the query below but the result always returns null.

How can I do this?

SQL Query:

Advertisement

Answer

You can use CASE expression instead IIF():

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