salix/db/routines/bi/views/facturacion_media_anual.sql

7 lines
221 B
MySQL
Raw Permalink Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `bi`.`facturacion_media_anual`
AS SELECT `cac`.`clientFk` AS `Id_Cliente`,
`cac`.`invoiced` AS `Consumo`
FROM `bs`.`clientAnnualConsumption` `cac`