8 lines
293 B
SQL
8 lines
293 B
SQL
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `vn`.`ticketLastUpdated`
|
|
AS SELECT `ticketLastUpdatedList`.`ticketFk` AS `ticketFk`,
|
|
max(`ticketLastUpdatedList`.`created`) AS `lastUpdated`
|
|
FROM `vn`.`ticketLastUpdatedList`
|
|
GROUP BY `ticketLastUpdatedList`.`ticketFk`
|