Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 1st, 2005, 08:35 AM
Manx Manx is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 Manx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 24 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old August 1st, 2005, 11:04 AM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,867 mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)mehere User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 4 Weeks 15 h 20 m 54 sec
Reputation Power: 1762
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

Reply With Quote
  #3  
Old August 2nd, 2005, 03:46 AM
Manx Manx is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 Manx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 24 sec
Reputation Power: 0
Sorry it was a tricky one to explain but I've managed to sort it now.

Thanks for replying.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > duplicate records


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT