10 lines
272 B
MySQL
10 lines
272 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`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`)
|
||
|
)
|