Hi,
I know this is not the right forum for SQL-query's, bet mayme someone know the result.
I have a SQL-table (tagnames) like
I would like to return an unique record per PARAMETER and the maximum lenght of field INHOUD
It sould be something like
I already have tried with
But this give me the unique PARAMETERS, but not the maximum of the field-lengt of INHOUD
The same with
How can I do this?
Thanks,
I know this is not the right forum for SQL-query's, bet mayme someone know the result.
I have a SQL-table (tagnames) like
PARAMETER INHOUD
--------- ------
TAGNAME AI123
PTDESC THIS IS A TEST
KEYWORD A
TAGNAME AI1231
PTDESC THIS IS AN OTHER TEST
KEYWORD ABBB
TAGNAME AI123456
PTDESC THIS IS A TEST
KEYWORD AQI would like to return an unique record per PARAMETER and the maximum lenght of field INHOUD
It sould be something like
PARAMETER INHOUD
--------- ------
TAGNAME 8
PTDESC 21
KEYWORD 4I already have tried with
SELECT parameter,inhoud,length(inhoud) as vlen from tagnames group by parameterBut this give me the unique PARAMETERS, but not the maximum of the field-lengt of INHOUD
The same with
SELECT parameter,inhoud,max(length(inhoud)) as vlen from tagnames group by parameterHow can I do this?
Thanks,
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite