|
-
Mar 28th, 2008, 08:11 AM
#1
Thread Starter
Hyperactive Member
Correct SQL statement?
plz,i cant figure out the right SQL to retrieve what i want from my SQL server 2005 database.
I have two tables, Table 1 is named tUsers & its columns hav the from (UserId,SName,FName) while Table 2 is named tData with columns (Date,Msg,Pass, UserId1,UserId2). Both UserId1 and UserId2 of tData table depends on UserId of tUsers table. I want to retrieve each row from tData of the form : Date, Msg, Pass, UserId1,SName of UserId1, FName of UserId1, UserId2,SName of UserId2, FName of UserId2)
Am getting some unnecessary results from my joins, any person to help the right SQL
10q
Nobody is smarter than all of us!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|