leemar99 Posted September 11, 2006 Share Posted September 11, 2006 Im trying to pull information from a Adobe Breeze Database. The Breeze database keeps information on scores/feedback etc of e-learning courses that people have taken!For some reason when a person completes a criculum it enters the information twice, 2 sets of scores, etc! So when i run my querie they results are doubled, not what i want!Each person has a pricipal_id so if there anyway i can tell it to bring back 1 principal_id rather than both?something where if the name is the same only display where pricipal_id differentHere is my querie so far -SELECT *FROM (dbo.PPS_SCOS JOIN dbo.PPS_TRANSCRIPTS ON dbo.PPS_SCOS.SCO_ID = dbo.PPS_TRANSCRIPTS.SCO_ID)JOIN dbo.PPS_PRINCIPALS ON dbo.PPS_TRANSCRIPTS.PRINCIPAL_ID = dbo.PPS_PRINCIPALS.PRINCIPAL_IDWHERE PPS_SCOS.NAME LIKE 'MT%'AND PPS_TRANSCRIPTS.STATUS LIKE 'P'AND PPS_PRINCIPALS.LOGIN LIKE '%banff-buchan.ac.uk'ORDER BY PPS_SCOS.SCO_ID ASC Link to comment https://forums.phpfreaks.com/topic/20372-doulble-feilds/ Share on other sites More sharing options...
fenway Posted September 11, 2006 Share Posted September 11, 2006 Well, sure, you could just add a GROUP BY clause, but you should probably get to the root of the problem. Link to comment https://forums.phpfreaks.com/topic/20372-doulble-feilds/#findComment-89796 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.