I'd like to group a field to which ive taken a substring of another field, but when i cant group by this substring that is in my select statement, any posible solutions ???? this is the simpliefied query with all the non essential stuff taken out
SELECT SUBSTR(FIELDX,3,7),COUNT(*)
FROM DB
WHERE various condition
GROUP BY SUBSTR(FIELDX,3,7)
field x is a brutally long field to which i only need a 7 byte field .... so how do i group this and only hav that substring displayed and counted
thanks !
SELECT SUBSTR(FIELDX,3,7),COUNT(*)
FROM DB
WHERE various condition
GROUP BY SUBSTR(FIELDX,3,7)
field x is a brutally long field to which i only need a 7 byte field .... so how do i group this and only hav that substring displayed and counted
thanks !