salix/db/routines/vn/views/workerDepartment.sql

10 lines
262 B
MySQL
Raw Permalink Normal View History

2024-08-20 08:06:10 +00:00
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`)
)