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
GPO Package error
Have the report showing correctly, now what?
How do I setup a network with cross over cable between server 2008 and server 2003? 500pnts
Internet Explorer Log File 200Gb - Disk full
Fortigate as a mail relay/reverse proxy/ISA?
LSASS.EXE Shuts down PC
Compiler error CS0122 ...inaccessible due to its protection level
Certificate for WPF application
Jet Reports Error in Navision
ASP.NET XCOPY, VS.Net