Select replace(nomearticolo," ","") as nomart, nomearticolo where categoria="quello che vuoi" group by campo_di_raggruppamento order by nomart


questa query dovrebbe funzionare