SyntaxFix
Write A Post
Hire A Developer
Questions
Am I missing something? You can just convert offer_date in the comparison:
SELECT * FROM offers WHERE to_char(offer_date, 'YYYYMM') = (SELECT to_date(create_date, 'YYYYMM') FROM customers where id = '12345678') AND offer_rate > 0