Answer B is the right answer. Not all the functions are allowed in a pl/sql block. In this case for decode you will get the error ORA-06550: line 4, column 10:
PLS-00204: function or pseudo-column 'DECODE' may be used inside a SQL statement only
you can use DECODE and GROUP FUNCTION in SQL statements inside PL/SQL not in procedurals statements.
After testing:
"Rapport d'erreur -
ORA-06550: Ligne 13, colonne 18 :
PLS-00204: fonction ou pseudo-colonne 'DECODE' peut être utilisée uniquem. ds instruc. SQL
ORA-06550: Ligne 13, colonne 5 :
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:"
so B is the correct answer
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
okl
Highly Voted 5 years agoCosminCof
4 years, 11 months agoPacogas
4 years, 9 months agotrex_fcs
Most Recent 1 year, 10 months agoPaps23
2 years, 3 months agoLimak665
3 years, 8 months agoNonaPeach
4 years, 5 months agochaoyuim
4 years, 9 months ago