1 2 3 4 5 6 7
| CREATE ALGORITHM=UNDEFINED DEFINER=`dbo204586586`@`%` SQL SECURITY DEFINER VIEW `listeBateauxPromotionAvecCabines` AS
select `lblac`.`noBateau` AS `noBateau`,
`lblac`.`nomZone` AS `nomZone`,
`lblac`.`nomZoneAng` AS `nomZoneAng`,
`pb`.`dateDebut` AS `dateDebut`,
`pb`.`dateFin` AS`dateFin`,
`db204586586`.`prixBateauPeriode`(`lblac`.`noBateau`,`pb`.`dateDebut`,(`pb`.`dateDebut` + interval (7 - `lblac`.`samediSamedi`) day)) AS `prix`,_utf8'Cabine' AS `equipage` from (`listeBateauxLocationAvecCabines` `lblac` join `promotionsBateaux` `pb` on((`lblac`.`noBateau` = `pb`.`noBateau`))) where (`pb`.`dateFin` > now()); |