salix/db/routines/vn/views/annualAverageInvoiced.sql

7 lines
218 B
SQL

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn`.`annualAverageInvoiced`
AS SELECT `cec`.`clientFk` AS `clientFk`,
`cec`.`invoiced` AS `invoiced`
FROM `bs`.`clientAnnualConsumption` `cec`