Microsoft
Software
Hardware
Network
Question : Need help with CASE statement
I have read CASE syntax, but I am still confuse. I want to write a CASE base on targetID as follow:
targetID = 1
FabricToSend="1 yard"
targetID = 2
FabricToSend = "2 yard"
i have no clue on how to start. :(
can someone guide me?
thanks
Answer : Need help with CASE statement
SELECT FabricToSend = CASE (TargetID) when 1 then '1 yard' when 2 then '2 Yard' else null end
or
SELECT FabricToSend = = CAST (TargetID as varchar)+ ' yard'
Random Solutions
Mail Merge
SBS2008 Standard - RDS - Virtual Desktops
Save Record Only On Save
How can I log on locally to a perimeter domain machine with a user from an internal domain account?
time as number?
Locking Field On Continuous Form
Open Sharepoint server's pdf file in asp.net...
Copy worksheets to new workbook
Trying to pass a SQL parameter to crystal reports in a command statement
Silverlight Accessing Static Resource