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 |
|
azharrahi
Starting Member
44 Posts |
Posted - 2006-06-15 : 08:59:19
|
| Here Is the Scenario:There are 4 tables (I will show here only necessary fields , remaining ignored)LMUserType (UserTypeID (int,auto-gen), UserType (varchar), UserID int)) Coaches ( CoachID (int), CoachName(varchar),..)Players (PlayerID (int,auto-gen),PlayerName(varchar),..)Referees (RefereeID (int,auto-gen), RefereeName(varcha),..)Here is The Data In LMUserType TableUserTypeID UserType UserID9 Coaches 410 Referees 111 Referees 412 Players 313 Players 114 Players 815 Players 6 Now I want to select the data from the remaining three tables through the LMUserType, such that when usertype = coaches and userid = 4 , then it must go to 'Coaches' table and select the data and then go to next row of LMUsertype and check that usertype= referees and userid = 4 and it must go to Referees table and select data from Referees and so on Is it Possible, If yes Then kindly tell me as soon as possible ?Azhar RahiSoftware EngineerEye4tech Pvt Ltd,Lahore Pakistan |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|
|
|