Hi,
I am doing UNION query of two tables.But the old table is having two additional columns of datatype date than my new table.
But I need the result of both the tables.So is there any default value for date that I can use as dummy variable in DQL.
If I used nulldate or null its throwing parse error.My expectation is when I am doing the UNION query in DQL I need the result from both the tables and if the returned result is from new table(that doesn't have two date columns) then that column should be null.If it is from new table then it should return the actual value.
ex:
select char1,date1,date2 from old table union select char1 from new table.
If I queried like this i will get "incorrect number of columns" in DQL.
So whats the dummy value for date.
Please help me to resolve this.Its urgent.