when we use function instead of procedure? plz tell me the
situation with ex?

Answers were Sorted based on User's Feedback



when we use function instead of procedure? plz tell me the situation with ex?..

Answer / manoj

Usually procedures are used when some action is to be
performed without retrun value.
Functions are used when some value is to be returned to the
calling enviornment.
You can not use procedure in the select statement however
functions can be used.

Is This Answer Correct ?    30 Yes 0 No

when we use function instead of procedure? plz tell me the situation with ex?..

Answer / priya

can we use default value in unique key?

Is This Answer Correct ?    4 Yes 2 No

when we use function instead of procedure? plz tell me the situation with ex?..

Answer / adil khan

procedure can only use in plsql not in sql. in other words
you can not use procedure in your select satatement. only
funtion can be used for example max(),min(),Avg() these all
are funtion not procedure.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL Server Interview Questions

How do I create an extended event in sql server?

0 Answers  


What are the main control-of-flow T-SQL constructs?

1 Answers  


What are different types of database indexes?

0 Answers  


To automatically record the time on which the data was modified in a table, which data type should you choose for the column?

0 Answers  


Can we add a cpu to sql server?

0 Answers  






What is data block and how to define data block size?

0 Answers  


How to use values from other tables in update statements in ms sql server?

0 Answers  


What is the difference between indexing and hashing?

0 Answers  


What is the difference between composite index and covering index?

0 Answers  


What is the order in which the sql query is executed?

0 Answers  


create index a on employee(dno) In this,which index was created?

2 Answers  


Define Joins?

0 Answers   HCL,


Categories