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
MS ACCESS 07 Loading table into Dropdownlist
Windows 2003 Drivers, Dell, Optiplex 755, Video
Form datasheet view combo box problem
Best way to downgrade Windows Server 2008 from Enterprize to Standard
Access 2003 report textbox limits to 255 characters
Does sysprep completely clean old network, domain and user settings in XP ?
Auto Close procedure
Working Days Calculator
how to get move line through mouse drag in view?
outlook 2003 attach item problem (attach as email)