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 |
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2014-02-18 : 21:51:12
|
tableA has ID 12345 and 54321, houseID 88888 and 99999tableB has ID 12345 and 54321, houseIS 88888how can i select * from tableAi tried this but it only appear those which matchselect * from tableA left join tableB where tableA.ID=tableB.ID and tableA.houseID=tableB.houseID |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2014-02-19 : 00:23:02
|
Your query is correct. If you aren't getting the correct results, please post better sample data.Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
|
|
|