Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Mon Dec 05, 2011 12:03 pm Post subject:
prog_mario,
I am assuming you did not show us the complete SQL as your error messages indicate you have an error on the INTO statement.
Either way your comparison is flipped. Shouldn't you be using the substr on tab_timestamp? or you need to concatenate the '-' to the tab_rec_date like nascar has shown.
Here is an alternative way of comparing (Untested )
Code:
WHERE REPLACE(DATE(tab_timestamp),'-','') >= tab_rec_date;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum