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 |
|
Humate
Posting Yak Master
101 Posts |
Posted - 2008-03-12 : 11:44:14
|
Hi All,I would like to match two sets of data. I have setup a view of data that contains a group of customers and their details. I want to view this data, but also find these customers in another table based on matching their surname and date of birth, then retreive the information stored on these customers from the second table.Does anyone have any suggestions how i would go about doing this? Thanks in advanceHumatequote: Originally posted by Michael Valentine Jones It takes real skill to produce something good out of a giant mess. 
|
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-03-12 : 12:32:28
|
| I think this is what you want:-SELECT * FROM YourView vINNER JOIN OtherTable tON t.DateOfBirth=v.DateOfBirthAND t.surname=v.surnameif it does nt give you results please post your table structure along with sample data. |
 |
|
|
|
|
|