I wish to select some rows from a table based on values from another table: Table1 (wish to select from here) Columns Date, Name, Pay
Table2 (contains a 'list' that determines what is selected from Table1) Columns Date, Name
The query I wish to write is to: Select Date,Name,Pay from Table1 where Date,Name is present in Table2
I got as far as being able to do it on one value
SELECT Date,Name,Pay FROM Table1 WHERE Table1.Name IN (Select Table2.name from Table2)
but Im stuck with how to add the date qualifier. The names in either table are not unique, what makes them unique is the date and name combination.