phpmyadmin - SQL with 2 variables -
im doing sql give me show date of specific cinema specific movie
i did , working cinema. mean show me show date of specific cinema...i need way show show date of specific cinema , specific movie
select show.show_datetime `cinema` join `theater` on `theater`.`cinema_id` = `cinema`.`cinema_id` join `show` on `show`.`theater_id` = `theater`.`theater_id` `cinema`.`cinema_id` = 1
please note have table movie , pk movie_id
i can see there relation between show , movie table on movie_id. use below query , let me know
select show.show_datetime `cinema` join `theater` on `theater`.`cinema_id` = `cinema`.`cinema_id` join `show` on `show`.`theater_id` = `theater`.`theater_id` join 'movie' on `show`.`movie_id` = `movie`.`movie_id` = `cinema`.`cinema_id` = 1 , `movie`.`movie_id` = 2
change movie id 2 whatever need
Comments
Post a Comment