8 lines
208 B
MySQL
8 lines
208 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn`.`workerMedia`
|
||
|
AS SELECT `w`.`id` AS `workerFk`,
|
||
|
`w`.`phone` AS `mediaValue`
|
||
|
FROM `vn`.`worker` `w`
|
||
|
WHERE `w`.`phone` IS NOT NULL
|