Re: [SQL] SELECT DISTINCT problems

2001-02-28 Thread Richard Huxton
From: "SCAHILL KEVIN" <[EMAIL PROTECTED]> > I would like to pull each distinct value of LecturerName with any one > corresponding ProjectCode value, it does not matter what the ProjectCode > value is, but all attemps at this have failed so far. > > I have tried this but it does not work: > > Set

Re: [SQL] SELECT DISTINCT problems

2001-02-28 Thread Tom Lane
SCAHILL KEVIN <[EMAIL PROTECTED]> writes: > I have tried this but it does not work: > Set rsLecturers = Server.CreateObject("ADODB.Recordset") > sqlLect = "Select LecturerName, MIN(ProjectCode) from tblSuggestions WHERE > LecturerName IN ( SELECT DISTINCT LecturerName FROM tblSuggestions)" > rsL

[SQL] SELECT DISTINCT problems

2001-02-28 Thread SCAHILL KEVIN
Hi there, I'm having a lot of trouble with one sql statement and I wonder can you help. I My problem is the following...there are two field name in the the table named LecturerName and Projectcode. Each ProjectCode vulue is unique within the table but there can be many entries in the table with t