Ver Mensaje Individual
  #2  
Antiguo 13-12-2007
Avatar de poliburro
[poliburro] poliburro is offline
Miembro Premium
 
Registrado: ago 2004
Ubicación: México D.F
Posts: 3.068
Reputación: 25
poliburro Va por buen camino
Se sencillo, el problema es que el query funciona sobre giros predefinidos

Código SQL [-]
 
    Select Fecha, 
              Count(Case When Giro = "Restaurant" Then 1 
                   Else 0 
               End) As Restaurant,
              Count(Case When Giro = "educativo" Then 1 
                   Else 0 
               End) As educativo
      From Apert
 Group By Fecha
__________________
Conoce mi blog http://www.edgartec.com
Responder Con Cita