|
CREATE OR REPLACE DEFINER=`vn`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn`.`workerDepartment`
|
|
AS SELECT `b`.`workerFk` AS `workerFk`,
|
|
`b`.`departmentFk` AS `departmentFk`
|
|
FROM (
|
|
`vn`.`business` `b`
|
|
JOIN `vn`.`worker` `w` ON(`w`.`businessFk` = `b`.`id`)
|
|
)
|