Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
bpuccha
Starting Member
34 Posts |
Posted - 2013-07-24 : 13:14:08
|
Here is the query output by joing two tablesName Addr Pcode amt1 amt2 policy_no trans_no r_noa address T1B3Y3 10 100 800000000PAP 1 1a address T1B3Y3 10 100 800000000PAP 1 2b address T1B3Y3 10 100 800000000PAP 1 3b address T1B3Y3 10 100 800000000PAP 1 4b address T1B3Y3 10 100 800000000PAP 1 5b address T1B4Y4 10 100 800000000PAP 1 6I need output in the below formatName Addr Pcode amt1 amt2 policy_no trans_no r_noa address T1B3Y3 10 100 800000000PAP 1 1,2b address T1B3Y3 10 100 800000000PAP 1 3,4,5b address T1B4Y4 10 100 800000000PAP 1 6I am using SQL server 2000..Is there any way that we can do this using a single query? |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|