SQL Query

Can someone help me with an SQL query i'm trying to create. I have a 2 tables with the following attributes:

Rental: Rental_ID (represents an ID # for the rental)ID( represents a members id #), Movie_ID (represents a movies_id #), Returned, Date_Returned

and

Movie: Movie_ID, Title, Actor etc

What i want is a query that when i give the ID # for the member, it returns the details of the movie they have on rental (and not ones that have been returned)

SELECT Movie_ID, Title FROM Movie WHERE

Thanks for any help in advance



Answer this question

SQL Query

  • jwraith

    Rental: Rental_ID (represents an ID # for the rental)ID( represents a members id #), Movie_ID (represents a movies_id #), Returned, Date_Returned

    and

    Movie: Movie_ID, Title, Actor

    select Rental.*, Movie.* from Rental inner join Movie on Rental.Movie_ID=Movie.Movie_ID where Rental.ID=



  • SQL Query