10 lines
335 B
MySQL
10 lines
335 B
MySQL
|
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||
|
SQL SECURITY DEFINER
|
||
|
VIEW `vn2008`.`ticketCreationData`
|
||
|
AS SELECT dayname(`h`.`confirm_date`) AS `DiadelaSemana`,
|
||
|
HOUR(`h`.`confirm_date`) AS `Hora`,
|
||
|
cast(`h`.`confirm_date` AS date) AS `Fecha`,
|
||
|
`h`.`source_app` AS `Dispositivo`
|
||
|
FROM `hedera`.`order` `h`
|
||
|
WHERE `h`.`confirm_date` <> 0
|