Recently, in a interview, I have been asked this question.
"WHY USE FUNCTIONS IF WE HAVE STORED PROCEDURES"
I answered we cannot perform DML operations using FUNCTIONS, We can use it to retrieve data only.
But Interviewer asked me, Stored procedures could also retrieve data then why use FUNCTIONS?
I ANSWERED: Don't know, I only use PROCEDURES...
I would like to know from all u guys, what u think about this questions.
Thanks
"WHY USE FUNCTIONS IF WE HAVE STORED PROCEDURES"
I answered we cannot perform DML operations using FUNCTIONS, We can use it to retrieve data only.
But Interviewer asked me, Stored procedures could also retrieve data then why use FUNCTIONS?
I ANSWERED: Don't know, I only use PROCEDURES...
I would like to know from all u guys, what u think about this questions.
Thanks
Comment