Hi I am counting the number of repeating recurencies of a field in a mysql database. Each field in the database i require is in the format /orgcharts/images/pic.jpeg
where each pic.jpeg has a different name, how do i search and retrieve JUST the pic.jpeg I have constructed this search but this retireives the whole ie- /orgcharts/images/pic.jpeg
SELECT heading_to,
count(*) as hits
FROM usertrack
WHERE heading_to like "/images/orgcharts/%"
GROUP BY heading_to
I could do it easily in oracle using
select heading_to, substr ( heading_to , instr ( heading_to , '/', -1 , 1 ) +1 , length (heading_to) ) from usertrack
Any Udeas much appreciated
Many Thanks in advance.
where each pic.jpeg has a different name, how do i search and retrieve JUST the pic.jpeg I have constructed this search but this retireives the whole ie- /orgcharts/images/pic.jpeg
SELECT heading_to,
count(*) as hits
FROM usertrack
WHERE heading_to like "/images/orgcharts/%"
GROUP BY heading_to
I could do it easily in oracle using
select heading_to, substr ( heading_to , instr ( heading_to , '/', -1 , 1 ) +1 , length (heading_to) ) from usertrack
Any Udeas much appreciated
Many Thanks in advance.