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

11 lines
341 B
MySQL
Raw Permalink Normal View History

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `bi`.`claims_ratio`
AS SELECT `cr`.`clientFk` AS `Id_Cliente`,
`cr`.`yearSale` AS `Consumo`,
`cr`.`claimAmount` AS `Reclamaciones`,
`cr`.`claimingRate` AS `Ratio`,
`cr`.`priceIncreasing` AS `recobro`,
`cr`.`packingRate` AS `inflacion`
FROM `vn`.`claimRatio` `cr`