SteveCulshaw
Programmer
Can anyone help on this SQL, as I'm just going round in circles?
I've got a table CNCODE with fields CODEVALUE and LISTNAME, and I need to get just the first codevalue for each of the different listvalues
So the table has
CODEVA LISTNAME
------ --------------------
COM 16BH
OFF 16BH
RES 16BH
COM 16H
OFF 16H
RES 16H
SCHEDB AACODE
AGENT AATYPE
ALIAS AATYPE
DIST AATYPE
...
What I need is
CODEVA LISTNAME
------ --------------------
COM 16BH
COM 16H
SCHEDB AACODE
AGENT AATYPE
...
I've got a table CNCODE with fields CODEVALUE and LISTNAME, and I need to get just the first codevalue for each of the different listvalues
So the table has
CODEVA LISTNAME
------ --------------------
COM 16BH
OFF 16BH
RES 16BH
COM 16H
OFF 16H
RES 16H
SCHEDB AACODE
AGENT AATYPE
ALIAS AATYPE
DIST AATYPE
...
What I need is
CODEVA LISTNAME
------ --------------------
COM 16BH
COM 16H
SCHEDB AACODE
AGENT AATYPE
...