2024-03-07 08:55:29 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
|
|
SQL SECURITY DEFINER
|
|
|
|
VIEW `vn`.`exchangeInsuranceInPrevious`
|
2024-03-07 09:07:42 +00:00
|
|
|
AS SELECT `ei`.`dueDated` AS `dated`,
|
2024-03-07 08:55:29 +00:00
|
|
|
`ei`.`amount` AS `amount`,
|
|
|
|
`ei`.`rate` AS `rate`
|
|
|
|
FROM `vn`.`exchangeInsurance` `ei`
|
|
|
|
WHERE `ei`.`amount` <> 0
|
|
|
|
AND `ei`.`financialProductTypefk` = 'SC'
|