Nicole,I'm not sure I'm completely understanding what you want to do, but, if I am, does this query work:SELECT DATE(datetime) AS date, SUBSTRING_INDEX(itemcallnumber, ' ', 1) AS 'Call# range', count(*) AS count FROM statistics LEFT JOIN items USING (itemnumber) WHERE statistics.type IN ('issue', 'renew') AND YEAR(datetime) = 2010 GROUP BY DATE(datetime), SUBSTRING_INDEX(itemcallnumber, ' ', 1);What this should do is select all the text before the first space in a call number. I don't have access to any catalog with circulation data, though, so I can't really test it.