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
- Code: Select all Expand view
- 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 AQ
I would like to return an unique record per PARAMETER and the maximum lenght of field INHOUD
It sould be something like
- Code: Select all Expand view
- PARAMETER INHOUD
--------- ------
TAGNAME 8
PTDESC 21
KEYWORD 4
I already have tried with
- Code: Select all Expand view
- SELECT parameter,inhoud,length(inhoud) as vlen from tagnames group by parameter
But this give me the unique PARAMETERS, but not the maximum of the field-lengt of INHOUD
The same with
- Code: Select all Expand view
- SELECT parameter,inhoud,max(length(inhoud)) as vlen from tagnames group by parameter
How can I do this?
Thanks,