Microsoft
Software
Hardware
Network
Question : Insert multiple rows into one field
I am running this query
SELECT CONVERT(VARCHAR(10),CardOT
BID) + ' ' + CONVERT(VARCHAR(20),Curren
tBalance)
FROM CardOTB_T_EC
WHERE CurrentBalance > @Amount
I want the results to go into one field so I can insert them into one row of a table.
Does anyone know how to do this?
Answer : Insert multiple rows into one field
declare @res varchar(8000)
SELECT @Res = COALESCE(@res+',' , '' )+ CONVERT(VARCHAR(10),CardOT
BID) + ' ' + CONVERT(VARCHAR(20),Curren
tBalance)
FROM CardOTB_T_EC
WHERE CurrentBalance > @Amount
---now you can insert @res into the other table
Random Solutions
Group Policy Not Being Picked Up?
TransferDatabase oddities (very strange)
Problem with device installing in WXPe
MAPI Session - locate default signature text.
Remote pop up when opening outlook
Number of days between two dates
VBA - Multiple outputs from one function
ASP.NET reading, creating Excel files
Click Context Menu, opened by mshtml.IHTMLElement
Intel Pro/1000 MT (Single Port) - Teaming Options Not Shown In Device Manager on Windows 2003 32-bit