I have a table that has a column of years as values.
How would I construct an If statement within a stored procedure to check if a record exists that starts with the current YYYY? If there is no record, I will be dropping a sequence.
if (record exists LIKE SYSDATE(YYYY))
Continue
else
DROP MY_SEQ