This commit is contained in:
parent
4f5bd95d21
commit
2d06f42493
|
@ -0,0 +1,20 @@
|
|||
-- vn.defaulter source
|
||||
|
||||
CREATE OR REPLACE
|
||||
ALGORITHM = UNDEFINED VIEW `vn`.`defaulter` AS
|
||||
select
|
||||
`d`.`clientFk` AS `clientFk`,
|
||||
`d`.`created` AS `created`,
|
||||
`d`.`amount` AS `amount`,
|
||||
`d`.`defaulterSinced` AS `defaulterSinced`,
|
||||
`d`.`hasChanged` AS `hasChanged`,
|
||||
`c`.`countryFk` AS `country`,
|
||||
`c`.`payMethodFk` AS `payMethod`
|
||||
from
|
||||
(((`bs`.`defaulter` `d`
|
||||
join `vn`.`client` `c` on
|
||||
(`c`.`id` = `d`.`clientFk`))
|
||||
join `vn`.`country` `co` on
|
||||
(`co`.`id` = `c`.`countryFk`))
|
||||
join `vn`.`payMethod` `pm` on
|
||||
(`pm`.`id` = `c`.`payMethodFk`));
|
Loading…
Reference in New Issue