IIF name table (1 Viewer)

melissafvoelker

Registered User.
Local time
Today, 02:39
Joined
Nov 1, 2005
Messages
16
SELECT [asset class] , iif(ct2.[asset class]='3050', 'yes', 'Nope!') IIF_Example
FROM CONVERSION_TABLE_2 AS ct2;

The above isn't working because of my attempt to name the column.
I want to call the column "IIF_Example." Why doesn't it work?

Thanks
 

FlyerMike

Registered User.
Local time
Today, 05:39
Joined
Oct 26, 2005
Messages
47
SELECT [asset class] , iif(ct2.[asset class]='3050', 'yes', 'Nope!') as IIF_Example
FROM CONVERSION_TABLE_2;

I think the As was misplaced...
 

melissafvoelker

Registered User.
Local time
Today, 02:39
Joined
Nov 1, 2005
Messages
16
Access vs. SQL

yeah. i realized it, but i thought the as was optional.
 

Users who are viewing this thread

Top Bottom