bartdedecker
Programmer
Hi,
How can I use an IFF in my select clause.
I have a column VAT_NUMBER (nvarchar(50)) in my Table. I want an extra column in the result of my query. If the VAT_NUMBER is not null then return 1 otherwise return a 0.
(I use SQL Server 2000)
Thx in advance
How can I use an IFF in my select clause.
I have a column VAT_NUMBER (nvarchar(50)) in my Table. I want an extra column in the result of my query. If the VAT_NUMBER is not null then return 1 otherwise return a 0.
(I use SQL Server 2000)
Code:
SELECT
NAME,VAT_NUMBER, ???VAT_NUMBER_YN???
FROM
USERS
Thx in advance