I'm trying to get it as:
SELECT * FROM "Employee" WHERE TIMESTAMPDIFF('YEAR', "BirthDate", "HireDate");
but I get the next error:
ERROR: function timestampdiff(unknown, timestamp without time zone, timestamp without time zone) does not exist
LINE 1: SELECT * FROM "Employee" WHERE TIMESTAMPDIFF('YEAR', "BirthD...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
I've found another way to get difference between 2 dates but in my instructions it says that I have to get it via TIMESTAMPDIFF
.
Can someone help me where to look and how to fix my error?