Advertisement
darkoromanov

missing_d

Jun 26th, 2019
694
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.79 KB | None | 0 0
  1. CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `missing_d`
  2. AS SELECT
  3.    `d60`.`channel_code` AS `channel_code`,
  4.    `d60`.`time_code` AS `time_code`,
  5.    `d60`.`value` AS `value`,
  6.    `d60`.`tep` AS `tep`,
  7.    `d60`.`datasheet_id` AS `datasheet_id`,
  8.    `d60`.`time_year` AS `time_year`,
  9.    `d60`.`time_month` AS `time_month`,
  10.    `d60`.`time_day` AS `time_day`,
  11.    `d60`.`time_hour` AS `time_hour`,
  12.    `s`.`grouping` AS `grouping`
  13. FROM ((`channel_data_60` `d60` join `source` `s` on((`s`.`code` = `d60`.`channel_code`))) left join `channel_data_day` `dm` on(((`d60`.`channel_code` = `dm`.`channel_code`) and (`d60`.`time_year` = `dm`.`time_year`) and (`d60`.`time_month` = `dm`.`time_month`) and (`d60`.`time_day` = `dm`.`time_day`)))) where isnull(`dm`.`channel_code`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement