Hello,
why isnt this query working?
SELECT name, Date1, Date2
FROM table1
WHERE Date1 > DATE2;
values in the table itself
Name Date1 Date2
John Smith 08021977 07281978
Paul test 03142011 06061963
should return the below correct? Since date1 is greater then date2 (08021977 is earlier then 07281978)
Name Date1 Date2
John Smith 08021977 07281978
but when i write the above SQL it returns nothing... can someone please help? I've tried "<" as well, when i do that then both of the rows above come (John and Paul)...
why isnt this query working?
SELECT name, Date1, Date2
FROM table1
WHERE Date1 > DATE2;
values in the table itself
Name Date1 Date2
John Smith 08021977 07281978
Paul test 03142011 06061963
should return the below correct? Since date1 is greater then date2 (08021977 is earlier then 07281978)
Name Date1 Date2
John Smith 08021977 07281978
but when i write the above SQL it returns nothing... can someone please help? I've tried "<" as well, when i do that then both of the rows above come (John and Paul)...