SELECT '["' ||
Max(LONGDESCRIPTIONID) || '"],' /*, COUNT(*)*/
FROM ( SELECT LONGDESCRIPTIONID,
NTILE(30) OVER (ORDER BY LONGDESCRIPTIONID) AS nt FROM MAXIMO.LONGDESCRIPTION )
AS subquery
GROUP BY nt
ORDER BY nt;
SELECT '["' ||
Max(LONGDESCRIPTIONID) || '"],' /*, COUNT(*)*/
FROM ( SELECT LONGDESCRIPTIONID,
NTILE(30) OVER (ORDER BY LONGDESCRIPTIONID) AS nt FROM MAXIMO.LONGDESCRIPTION )
AS subquery
GROUP BY nt
ORDER BY nt;
save my life , thank you very much
ReplyDelete