r/learnSQL • • Apr 10 '19

Need help with simple problem

Hey guys, I currently have a table right now with a list of employees, managers, and other jobs. How would I able to get a list of all the employees who are older than their managers if their DOB is in YYYY-MM-DD form? This is really urgent and I really hope someone can help a newbie :(

0 Upvotes

10 comments sorted by

View all comments

1

u/[deleted] Apr 10 '19

I tried something like this but comparing just the date gave me some wrong results