2
I need help with a command in a proc SQL.
Basically I 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
It’s possible to do something like this?
I’ve used a similar example instead of using IF. Very good answer.
– Marconi
It worked just right. Thank you very much.
– user21928