Get comma separated list of integers -
05-17-2011
, 09:41 AM
The following query will return one row for each pkLoanID present in
the queried table:
SELECT pkLoanID FROM Loans
So, if there were three records, I would get back three records.
What I want is a query that will instead return just a single row/
value which would equal a comma-separated list of the pkLoanID values
(e.g. 1,2,3).
How can I accomplish with with SQL? |