Application Developer Question:
Download Job Interview Questions and Answers PDF
Can we give DML statements inside a function?
Answer:
YES YOU CAN USE DML(SELECT) WITHIN User defined function(UDF). BUT KEEP IN MIND THAT UDF CAN ONLY RETURN ONE SINGLE VALUE. BUT YOU CANT USE DDL(CREATE/ALTER/DROP) WITHIN UDF. TO DO THAT YOU HAVE TO USE SP(Stored Procedure).
Download Application Developer Interview Questions And Answers
PDF