SyntaxFix
Write A Post
Hire A Developer
Questions
This is how I usually do it. A simple number of days perspective of B minus A.
DATE_PART('day', MAX(joindate) - MIN(joindate)) as date_diff