I have this query in MySQL
Select t.grupo,
Sum(servicios.cantidad) As total
From (select distinct clv_servicio, grupo from actuacion) as t
Join servicios On t.clv_servicio = servicios.id_servicos
Group By t.grupo
That works correctly but at the time of creating it I get this error:
# HY000View's SELECT contains subquery in the FROM clause
Is there any way to modify it so that the view can be created? Thanks.