0

I have two attributes in table (char and date) like a 90061455555 and 1990-06-14. I must create references where third and fourth number in first attribute (90061455555) are the same as month in date attribute (1990-06-14). and similar: 90061455555 1990-06-14 90061455555 and 1990-06-14

How I can do this?

1 Answer 1

1

I would simply do:

where substr(strcol, 3, 2) = to_char(datecol, 'MM')
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.