Gossamer Forum
Home : General : Databases and SQL :

DISTINCT SQL Problem

Quote Reply
DISTINCT SQL Problem
Hi,

I am trying to remove duplicates from this query, but I need to have the unique identifier column, ID in the query, so the DISTINCT fuction is not working because, the columns that have dupes have unique IDs.

SELECT DISTINCT Course, coursename, ID
FROM t_courses
WHERE (Course = 28447)

The courses with this course number are all showing up, because I can't get rid of the ID column in the query.

Any ideas how to return all three columns with the Distinct working off the course field?

ThanksUnsure
Subject Author Views Date
Thread DISTINCT SQL Problem dtkelly72 17581 Dec 9, 2002, 3:49 PM
Post Re: [dtkelly72] DISTINCT SQL Problem
Alex 17258 Dec 9, 2002, 3:59 PM
Post Re: [dtkelly72] DISTINCT SQL Problem
Stealth 17233 Dec 9, 2002, 7:29 PM
Post Re: [dtkelly72] DISTINCT SQL Problem
dregs2 17201 Dec 10, 2002, 11:28 AM