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

10 lines
270 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`.`workerTeamCollegues`
AS SELECT DISTINCT `w`.`workerFk` AS `workerFk`,
`t`.`workerFk` AS `collegueFk`
FROM (
`vn`.`workerTeam` `w`
JOIN `vn`.`workerTeam` `t` ON(`w`.`team` = `t`.`team`)
)