Im trying to execute the following SQL query and filter out the data based on the date.
I need to display a table which filters out the data such that, only those rows which are between the mentioned start_date and end_date
Here's the query that I have been trying
SELECT DISTINCT T1.column1, T1.column2, T2.START_DATE, T2.END_DATE
FROM Table1 T1, Table2 T2
WHERE (T1.column1= T2.column2) AND
(T2.START_DATE >= '15/01/2013 10:58:58' AND
T2.END_DATE <= '18/01/2013 10:58:58') ORDER BY T2.START_DATE DESC
I get the result with values from 2012 as well. Please help me out
Thanks
START_DATE
andEND_DATE
columns ? – Fungus