I am getting an error message in a Stored Procedure using the Line:
and YEAR(APC.dtEffective) = EffectiveYear
Effective year will have a year in it(Ex: 2000), and apc.dteffective is a date field from a table.
The error message that I am getting is:
PLS-00201: identifier "YEAR" must be declared
The question is how do I code this statement to compare years?
and YEAR(APC.dtEffective) = EffectiveYear
Effective year will have a year in it(Ex: 2000), and apc.dteffective is a date field from a table.
The error message that I am getting is:
PLS-00201: identifier "YEAR" must be declared
The question is how do I code this statement to compare years?