M
Mika M
How to do something like IIf with Sql-query using Sql-Server 2000?
I mean my database table has bit(boolean) field, and if this bit field is on
(true) then calculation field should use other formula than when this
bit-field is not on (false) like ...
IIF(MyTable.BitField = true, "FieldA + FieldB", "FieldA + FieldC") AS
SumValue
I think this should be easy, but I haven't succeeded yet. Yes, I know this
is not Sql-query question, but I need this query with ADO.NET
I mean my database table has bit(boolean) field, and if this bit field is on
(true) then calculation field should use other formula than when this
bit-field is not on (false) like ...
IIF(MyTable.BitField = true, "FieldA + FieldB", "FieldA + FieldC") AS
SumValue
I think this should be easy, but I haven't succeeded yet. Yes, I know this
is not Sql-query question, but I need this query with ADO.NET