telecom engineer 0 Report post Posted September 29, 2011 dear all , i am working on CRM(Customer relationship manegement) and i need to find customers that last connected in 10 days for example (inactive customers) i have a table with start date and stop date , can i run query to know who was inactive for the last 10 days (for example stop date would be 19-Sep) i need to know if it is doable at least . thank you Share this post Link to post Share on other sites
japet 0 Report post Posted October 29, 2011 try this where clause... where to_date(sysdate, 'yyyy/mm/dd') - to_date(last_date, 'yyyy/mm/dd') > 10 Share this post Link to post Share on other sites