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 |
|
ramdas
Posting Yak Master
181 Posts |
Posted - 2002-12-26 : 11:23:16
|
| Hi Folks,I have 3 tables called CMS,Gate and Answer.I have to join the GATE and CMS on Gate Number, join GATE and Answer table on Region. How would I do this using the new INNER JOIN syntax, I am getting confused as to the placement of the tables in the syntax.ByeRamdasRamdas NarayananSQL Server DBA |
|
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2002-12-26 : 11:26:46
|
Something like the following:SELECT c.Field, g.Field, a.Field -- WHATEVER SELECT FIELDS FROM CMS cINNER JOIN Gate g ON g.GateNumber = c.GateNumberINNER JOIN Answer a ON a.RegionID = g.RegionIDWHERE c.Field = @SomeValue Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda> |
 |
|
|
ramdas
Posting Yak Master
181 Posts |
Posted - 2002-12-26 : 12:20:37
|
| Thank youByeRamdas NarayananSQL Server DBA |
 |
|
|
|
|
|