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 |
|
Eagle_f90
Constraint Violating Yak Guru
424 Posts |
Posted - 2008-03-11 : 09:43:06
|
| I need a bit of help writting a select statment and joining 4 differant talbes. I have used inner joins between two different tables before but never more then two tables.Table layout (listing only the columns I want to pull):Abbrevations.ShortAbbrevations.LongAvatars.CreatorAvatars.AvatarNameAvatars.FileNameAvatars.GameAvatars.SectionAvatars.WidthAvatars.HeightFanInfo.CratorFanInfo.ContactMethodFanInfo.AddressFanRattings.CrationFanRattings.RatingHow they relate:Abbrevations.Short = Avatars.GameAvatars.Creator = FanInfo.CreatorAvatar.AvatarName = Ratings.CrationAny help would be really helpful. Thanks-- If I get used to envying others...Those things about my self I pride will slowly fade away.-Stellvia |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-03-11 : 09:51:53
|
SELECT {column list here}FROM Table1 AS t1INNER JOIN Table2 AS t2 ON t2.ColX = t1.ColYINNER JOIN Table3 AS t3 ON t3.ColF = t2.ColZINNER JOIN Table4 AS t4 ON t4.ColG = t3.ColE E 12°55'05.25"N 56°04'39.16" |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-03-11 : 10:00:43
|
| SELECT fieldsFROM FanRattings frINNER JOIN Avatars aON a.AvatarName = fr.CrationINNER JOIN FanInfo fiON fi.Creator = a.CreatorINNER JOIN Abbrevations abON ab.Short=a.Game |
 |
|
|
Eagle_f90
Constraint Violating Yak Guru
424 Posts |
Posted - 2008-03-11 : 10:05:18
|
| Freaking hell, did not realize it was that easy. thanks.-- If I get used to envying others...Those things about my self I pride will slowly fade away.-Stellvia |
 |
|
|
|
|
|