elmo_helper
12-09-2011, 09:38 AM
how do i get it to show the films not downloaded in spain as for example this query returns inception as it was download by someone in france but it was also downloaded in the spain so how do i get it to check for films only spain has not downloaded and return.
SELECT tbl_movies.movie_id, movie_title, movie_duration, movie_director, tbl_customer.customer_id, country_of_residence
FROM tbl_movies, tbl_customer, tbl_download
WHERE
tbl_movies.movie_id = tbl_download.movie_id AND
tbl_customer.customer_id = tbl_download.customer_id AND
tbl_customer.country_of_residence != 'spain'
this query shows all the movies download when the country of residence isnt 'spain'
SELECT tbl_movies.movie_id, movie_title, movie_duration, movie_director, tbl_customer.customer_id, country_of_residence
FROM tbl_movies, tbl_customer, tbl_download
WHERE
tbl_movies.movie_id = tbl_download.movie_id AND
tbl_customer.customer_id = tbl_download.customer_id AND
tbl_customer.country_of_residence != 'spain'
this query shows all the movies download when the country of residence isnt 'spain'