Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatanating code

Status
Not open for further replies.

chamilz

MIS
Joined
Feb 10, 2005
Messages
102
Location
CA
I have a table which basically contain records like below

part size
1 900
1 910
1 920
2 900
2 910
3 920
3 930

i need an output in a another table concatinating size code as follow..
eg.

Part size
1 900910920
2 900910
3 920930

could u pls let me know how can i write cursor to get this result.

Thanks,
 
see thread183-906921

[bandito] [blue]DBomrrsm[/blue] [bandito]

[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
 
I have a table which basically contain records like below

part size
1 900
1 910
1 920
2 900
2 910
3 920
3 930

i need an output in a another table concatinating size code as follow..
eg.

Part size
1 900910920
2 900910
3 920930

could u pls let me know how can i write cursor to get this result.

Thanks,
 
Did you try to modify the code from the last post in the link that DBomrrsm gave you?
-Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
sorry i accidently posted my thread again...iDBomrrsm solution is fine..its working!! thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top