I have data which looks like this:
ID post_author post_title guid 3309 21 Should somebody not yet on SQL 2008 wait for SQL 2008 R2, since it\'s near release? h
Write a SQL FUNCTION - call it for instance, guid_extract(guid), which extracts the pertinent info, then you can add it to a column in your select::
SELECT stuff, otherstuff, guid_extract(guid) as site ... GROUP BY site;