Why do I keep getting a syntax error when trying to find the difference between dates in postgresql in creating a function
I am creating a function in PostgreSQL to find the difference between 2 dates and setting it as an INT. I keep getting a syntax error. I know there is no DATEDIFF option in PostgreSQL and I have to subtract one from the other. Here is my code