01/08/2003, 02:03
|
| | Fecha de Ingreso: abril-2003 Ubicación: Madrid
Mensajes: 707
Antigüedad: 21 años, 9 meses Puntos: 0 | |
Prueba con algo como esto
select Left(category, CharIndex(' ', Category) -1), count(category) as total
from reportcomplete
where client_name like '%renault.%'
group by Left(category, CharIndex(' ', Category) -1)
He quitado también lo de cliente, aunque no sé si te afectará en la SELECT y en los resultados que quieres obtener |