16 lines
464 B
SQL
16 lines
464 B
SQL
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
SQL SECURITY DEFINER
|
|
VIEW `hedera`.`myTicketService`
|
|
AS SELECT `s`.`id` AS `id`,
|
|
`s`.`description` AS `description`,
|
|
`s`.`quantity` AS `quantity`,
|
|
`s`.`price` AS `price`,
|
|
`s`.`taxClassFk` AS `taxClassFk`,
|
|
`s`.`ticketFk` AS `ticketFk`,
|
|
`s`.`ticketServiceTypeFk` AS `ticketServiceTypeFk`
|
|
FROM (
|
|
`vn`.`ticketService` `s`
|
|
JOIN `hedera`.`myTicket` `t` ON(`s`.`ticketFk` = `t`.`id`)
|
|
)
|
|
WITH CASCADED CHECK OPTION
|