Last active
September 30, 2016 13:16
-
-
Save bifacil/3d0126d109c2f96e6390679f6deac6e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
LB_TIENDAS.POBLACION AS #Poblacioooooooooooooon, | |
LB_TIENDAS.NOMBRE AS #Tienda, | |
LB_TIEMPO.FECHA AS Fecha, | |
sum(LB_VENTAS.UNIDADES) AS Unidades | |
FROM LB_VENTAS | |
INNER JOIN LB_TIENDAS ON (LB_VENTAS.ID_TIENDA=LB_TIENDAS.ID_TIENDA) | |
INNER JOIN LB_TIEMPO ON (LB_VENTAS.FECHA=LB_TIEMPO.FECHA) | |
WHERE | |
LB_TIEMPO.ANYO='2013' | |
AND LB_TIENDAS.POBLACION='BARCELONA' | |
GROUP BY | |
LB_TIENDAS.POBLACION, | |
LB_TIENDAS.NOMBRE, | |
LB_TIEMPO.FECHA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment