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 |
|
tmaiden
Yak Posting Veteran
86 Posts |
Posted - 2010-06-01 : 13:38:03
|
| I am trying to combine these queries by joins. Not looking to use a UNION. Thought this could be accomplised with a FULL OUTER JOIN. Please advise.SELECT B.FieldFROM Base BWHERE B.CreatedOn = '05/11/2010'SELECT B.FiledFROM Base BINNER JOIN Table1 t1ON t1.ID = B.IDWHERE t1.ModifiedOn = '05/11/2010'Thought this would work, but doesn't seem to.SELECT B.FiledFROM Base BFULL OUTER JOIN Table1 t1ON t1.ID = B.IDWHERE t1.ModifiedOn = '05/11/2010' OR ISNULL(B.CreatedOn,'05/11/2010') = '05/11/2010' |
|
|
|
|
|