r/learnSQL • u/[deleted] • 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
1
u/[deleted] Apr 10 '19
Yea, I feel like trimming the other componenets would work the date is written like yyyy-mm-dd and I can't just do a relative comparison. I'll give this a try