Changed into a procedure, getting a syntax error at \'PROCEDURE\' any ideas?
CREATE PROCEDURE performance_Report @startDate DATE, @endDate DATE AS SELECT S
CREATE PROCEDURE was introduced to PostgreSQL in version 11, so if you are using an earlier version you will get ERROR: syntax error at or near "PROCEDURE"
CREATE PROCEDURE
ERROR: syntax error at or near "PROCEDURE"