I need a help with a command in a SQL proc.
I basically need something like this:
...
...
WHERE
IF ( @Id_ProductClass IS NULL )
WHERE CLIENTPROD.Id_ProductClass NOT IN (59, 150)
ELSE
WHERE CLIENTPROD.Id_ProductClass = @Id_ProductClass
Is it possible to do something like this?