16 lines
454 B
MySQL
16 lines
454 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn2008`.`v_Articles_botanical`
|
||
|
AS SELECT `ib`.`itemFk` AS `itemFk`,
|
||
|
concat(`g`.`name`, ' ', IFNULL(`s`.`name`, '')) AS `ediBotanic`
|
||
|
FROM (
|
||
|
(
|
||
|
(
|
||
|
`vn`.`itemBotanical` `ib`
|
||
|
LEFT JOIN `vn`.`genus` `g` ON(`g`.`id` = `ib`.`genusFk`)
|
||
|
)
|
||
|
LEFT JOIN `vn`.`specie` `s` ON(`s`.`id` = `ib`.`specieFk`)
|
||
|
)
|
||
|
LEFT JOIN `vn`.`ediSpecie` `es` ON(`es`.`id` = `ib`.`specieFk`)
|
||
|
)
|