I have the following select statement:
SELECT IIF(DateFirstSeen IS NOT NULL, DateFirstSeen, 'Not Seen') as [Date First Seen]
But when I run this, I get the error:
Conversion failed when converting character string to smalldatetime data type
Can anybody help with this?