IIF in SQL server
From: MichaelK (michaelk_at_gomobile.com)
Date: 10/27/04
- Next message: Hugo Kornelis: "Re: Get the smallest timespan between two entries"
- Previous message: Becky Brock via SQLMonster.com: "SQL Server Query Analyzer Does Not Open"
- Next in thread: Hugo Kornelis: "Re: IIF in SQL server"
- Reply: Hugo Kornelis: "Re: IIF in SQL server"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 27 Oct 2004 12:51:12 -0700
Is there a way in SQL Server to run the simple query
having something like IIF function in Access.
Similar to this easy query.
SELECT Mobile,iif([PlanType]=1, "New", "Upgrade") As Type FROM Acts WHERE
(RepId = 2194)
Thanks,
Michael
- Next message: Hugo Kornelis: "Re: Get the smallest timespan between two entries"
- Previous message: Becky Brock via SQLMonster.com: "SQL Server Query Analyzer Does Not Open"
- Next in thread: Hugo Kornelis: "Re: IIF in SQL server"
- Reply: Hugo Kornelis: "Re: IIF in SQL server"
- Messages sorted by: [ date ] [ thread ]