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
where parameters aspx .net page
How do I remove existing ListView items and subitems
SCCM SP2 Client
data transfer cable vista
Can't get the Excel ado connection to work with .xls version 2.1
Access 2003: transfer spreadsheet is failing
MS Excel 2007 Opens 2 Windows Every Time I Open File From Shortcut. How do I Fix?
Can i use XSD.exe or XSDObjectGen to generate a class library from a DTD? And if so which is best?
default email account keeps changing back to exchange
Close form in access and abandon half fillled record - without any access messages/Have a button/event do the same thing as the escape key.