I need to write the query based on the below condition.
I have two tables , in that i need to fetch the all the columns from table1 and one more column from another field based on the date field.
Date 1 field in Table 1 is in Datetime format,
Date2 field in table 2 id in date Format.
I am assuming the below query , please update me is there any changes
Select Table1.*, c3 
From Table1
Full Outer join
Table2 
On Date(Date1) = Date2
- here I'm using the Date function to convert the datetime field to date format.
- C3 is column in Table 2.
Please confirm me which join i should use?
 
     
    