Table1
ID Date
001 01/02/2009
001 02/02/2009
...
...
001 28/02/2009
002 01/02/2009
002 02/02/2009
...
...
002 28/02/2009
Table2
ID Date Salary
001 02/02/2009 800
001 25/02/2009 500
002 01/02/2009 300
...,
I want to join the two tables
Tried Query
SELECT table1.id, table1.date, table2.salary
FROM table1
LEFT OUTER JOIN table2 ON
table1.id = table2.id AND table1.date = table2.date
Result
Id Date Salary
001 02/02/2009 800
001 25/02/2009 500
002 01/02/2009 300
I want to display a result like all the id, date from table1 and salary from table2 where table1.date = table2.date
Expected Output
ID Date Salary
001 01/02/2009
001 02/02/2009 800
001 03/02/2009
...
...
001 25/02/2009 500
...
001 28/02/2009
002 01/02/2009 300
002 02/02/2009
...
...
002 28/02/2009
...
How to make a query in SQL
Need Query Help