I am trying to compare a number which I need to retrieve from the table to execute a trigger.
IF (Select *my table* from *column* where *condition*) < 1
then (something)
else (something)
but when it compile, I get the following error.
Error(2,8): PLS-00103: Encountered the symbol "SELECT" when expecting one of the following: ( - + case mod new not null others avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe
Am I wrong to use select to retrieve the amount to do the check? Please advise.