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 |
|
ank16437
Starting Member
1 Post |
Posted - 2010-05-13 : 08:20:13
|
| I have two tables X and Y . X and Y both have a column "Account".This column is unique in X while for an Account in X there are multiple records in Y.I want to display all records with same "Account" from X and Y in same row.Eg...X table - Account A1 B1 C1123 a q234 b f 345 c vY table - Account A1 B1 C1123 a q123 b f 345 c v345 R T234 D FSo records of both X and Y table with same Account should be displayed in one row. How can I achieve it..Thanks in advance |
|
|
mrm23
Posting Yak Master
198 Posts |
Posted - 2010-05-13 : 08:30:01
|
| can you give us the desired output? |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-05-13 : 08:36:50
|
...and maybe example data that makes more sense. No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-05-13 : 10:34:25
|
| you mean distinct sets of values or all values? also will you be certain on number of values always?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|