|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
duplicate records
Hi,
I'm having trouble working out why this select statement is returning duplicate values? For example. What should be returned is: c_Name c_UserMeetingId Peter Murtha 1178 Ian Grey-Wilson 1179 But what I get is: c_Name c_UserMeetingId Peter Murtha 1178 Peter Murtha 1179 Ian Grey-Wilson 1178 Ian Grey-Wilson 1179 The select statement I'm using is this: SELECT u.c_Name, um.c_UserMeetingId FROM t_User u, t_ThirdParty tp, t_UserMeeting um WHERE u.c_EmployeeId = tp.c_AppraiseeEmployeeId AND tp.c_EmployeeId = 'K005410' AND tp.c_EmployeeId = um.c_ThirdPartyEmployeeId AND tp.c_Accepted = 1 K005410 being who is checking to see what results are against their EmployeeId Any thoughts? Cheers |
|
#2
|
||||
|
||||
|
i don't see it as being duplicate values since the meeting id's are different ... could you explain a little more what you're trying to do.
__________________
Come JOIN the party!!! Quote of the Month: Retirement: Because you've given so much of yourself to the company that you don't have anything left we can use. Questions to Ponder: What do you do when you see an endangered animal eating an endangered plant? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#3
|
|||
|
|||
|
Sorry it was a tricky one to explain but I've managed to sort it now.
Thanks for replying. |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > duplicate records |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|