Advertisement
Guest User

Untitled

a guest
Jul 12th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`80.57.191.10` SQL SECURITY DEFINER VIEW `vw_availability_per_object` AS select `vw_availability_per_month`.`objectID` AS `objectid`,sum((case when ((`vw_availability_per_month`.`bookingyear` = year(now())) and (`vw_availability_per_month`.`bookingmonth` = month(now()))) then `vw_availability_per_month`.`numberofweeks` else 0 end)) AS `cur_month_numberofweeks`,sum((case when ((`vw_availability_per_month`.`bookingyear` = year(now())) and (`vw_availability_per_month`.`bookingmonth` = month(now()))) then `vw_availability_per_month`.`weeksbooked` else 0 end)) AS `cur_month_weeksbooked`,sum((case when ((`vw_availability_per_month`.`bookingyear` = year((now() + interval 1 month))) and (`vw_availability_per_month`.`bookingmonth` = month((now() + interval 1 month)))) then `vw_availability_per_month`.`numberofweeks` else 0 end)) AS `month_1_numberofweeks`,sum((case when ((`vw_availability_per_month`.`bookingyear` = year((now() + interval 1 month))) an[...]
  2.  
  3. MySQL said: Documentation
  4. #1449 - The user specified as a definer ('root'@'80.57.191.10') does not exist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement