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
DSUM Mulitple Criteria
VBA Unload Startup Form
Correlated subquery in THEN clause of CASE statement
How do I set the marquee text of the Logon Prompt screen saver for Default User?
isa 2006 std authenticating users
Can't view sheets even after unhiding all sheets.....VeryHidden???
How to hide textbox but keep it useable in VB.NET
IText "Could not load file..." error Question
SQL Server - How to find a string inside a variable?
Code Pause - sometimes