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
DevExpress XtraTreeList - tree structure
I am trying to get the "Currently" selected item in a multiple selection listbox - how can this be done?
NetBIOS
SQL data sorting
Need SQL Syntax help to make my qry more efficient.
How can I add this Excel Sheet to Access (form) and make it work like Excel Sheet?
Re-Formula =SUMPRODUCT for report creation
HELP, I fallen on a 'Runtime Error 3134 Syntax error in INSERT INTO statement' and i can't get up!
Exchange 2007 to remote non Outlook/Exchange clients. Attachment not received
foward one email to multiple people exchange 2007