11 lines
278 B
MySQL
11 lines
278 B
MySQL
|
USE `vn`;
|
||
|
CREATE
|
||
|
OR REPLACE ALGORITHM = UNDEFINED
|
||
|
DEFINER = `root`@`%`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn`.`annualAverageInvoiced` AS
|
||
|
SELECT
|
||
|
`e`.`Id_Cliente` AS `clientFk`, `e`.`Consumo` AS `invoiced`
|
||
|
FROM
|
||
|
`bi`.`facturacion_media_anual` `e`;
|