Hello all --
Before I go spending too much time programming a solution for this, I was wondering if there's a SQL solution...
Let's say I have a table that looks like this:
SVP VPO
52 1
52 1
52 2
52 2
My end product for my app needs to be a comma separated list of VPOs that have SVP=52 (i.e. 1,2)
So if I ask:
SELECT VPO FROM table WHERE SVP = 52 GROUP BY VPO
then I get:
1
2
Is there a way I can get:
1,2
??
SQL Server is my DBMS, if that helps at all.
Thanks!
paul
Before I go spending too much time programming a solution for this, I was wondering if there's a SQL solution...
Let's say I have a table that looks like this:
SVP VPO
52 1
52 1
52 2
52 2
My end product for my app needs to be a comma separated list of VPOs that have SVP=52 (i.e. 1,2)
So if I ask:
SELECT VPO FROM table WHERE SVP = 52 GROUP BY VPO
then I get:
1
2
Is there a way I can get:
1,2
??
SQL Server is my DBMS, if that helps at all.
Thanks!
paul