Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is difference between function and procedure?

Answers were Sorted based on User's Feedback



What is difference between function and procedure?..

Answer / santosh(ssit)

Both functions and procedures can return values. Apart from
this following are the differences

1) Functions are used for computations where as procedures
can be used for performing business logic

2) Functions MUST return a value, procedures need not be.

3) You can have DML(insert,update, delete) statements in a
function. But, you cannot call such a function in a SQL query..
eg: suppose, if u have a function that is updating a table..
you can't call that function in any sql query.
- select myFunction(field) from sometable; will throw error.

4) Function parameters are always IN, no OUT is possible

5) Function returns 1 value only. procedure can return
multiple values(max. 1024)

6) Stored Procedure :supports deffered name resoultion
Example while writing a stored procedure that uses table
named tabl1 and tabl2 etc..but actually not exists in
database is allowed only in during creation but runtime
throws error Function wont support deffered name resolution.
Stored procedure returns always integer value by default
zero. where as function return type could be
scalar or table or table values(SQL Server).
Stored procedure is pre compiled exuction plan where as
functions are not.

7) A procedure may modifiy an object where a function can
only return a value.

Is This Answer Correct ?    0 Yes 0 No

What is difference between function and procedure?..

Answer / priya.

Procedures v/s functions.
1.A function MUST return a value. A procedure can also
return value, but it is NOT MANDATORY for Procedure to
return a value.
2.A function can return only ONE value. A procedure can
return MULTIPLE values.
3.A function can be used with SELECT statements as like as
other in-build functions. But, a procedure cannot be used
with SELECT statements.
4.A function cannot be executed directly from SQL prompt
using EXEC command, but it is possible to execute directly
from SQL prompt using EXEC command.

Is This Answer Correct ?    0 Yes 0 No

What is difference between function and procedure?..

Answer / priya

1.A function must return a value. A procedure can also
return value, but it is not mandatory for Procedure to
return a value.
2.A function can return only one value. A procedure can
return multiple values.
3.A function can be used with SELECT statements as like as
other in-build functions. But, a procedure cannot be used
with SELECT statements.
4.A function cannot be executed directly from SQL prompt
using EXEC command, but it is possible to execute directly
from SQL prompt using EXEC command.

Is This Answer Correct ?    0 Yes 0 No

What is difference between function and procedure?..

Answer / savi

1.fumction should return a value
procedure may or not return a value
2.function computes a value
procedure performs an action

Is This Answer Correct ?    1 Yes 3 No

What is difference between function and procedure?..

Answer / babu

1.Function always return a single value but procedure may
return more than one value.
2.We can use functions in select statement but we can not
use procedure in select statement.
3.There is possible of recurssive functionlike max(min
(something)),but there is nothing like in procedure.
4.In function we use a return keyword but in procedure no
return keyword is used.

Is This Answer Correct ?    8 Yes 11 No

What is difference between function and procedure?..

Answer / xyz

manohar evaru picchi lanza koduku..procedure ki function ku
answer ala icchadu..professional va kaaada ra pukaa.

Is This Answer Correct ?    6 Yes 15 No

What is difference between function and procedure?..

Answer / abhishek khare

1.Funcan can return a valur but not procedure
2.Function can accept only one parameter IN but procedure
can take IN or OUT or both parameters.
3.Procedure follows only linear execution but not function.

Is This Answer Correct ?    13 Yes 36 No

What is difference between function and procedure?..

Answer / siva

Fuction returns a value whereas procedure doesnt return any
value
if some function calling is dere den function switch over 2
d function definition part directly but procedure go from
top 2 down linearly

Is This Answer Correct ?    25 Yes 82 No

What is difference between function and procedure?..

Answer / deepika

Action is a part of Function.
Function is a Like a Functional Test case.
Procedure is a process to perform the Different Actions

Is This Answer Correct ?    71 Yes 136 No

What is difference between function and procedure?..

Answer / vinod

All are correct....

Is This Answer Correct ?    30 Yes 133 No

Post New Answer

More QTP Interview Questions

In a Web appl, on a page, there are student names & details listed.On clicking sort button,details are sorted on Names.How do u verify htat sorting is done by using QTP?

1 Answers   IBM,


.qfl extension for which file? where vl use it

3 Answers   iFlex,


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

0 Answers  


What is RTM (require ment tracebulity marix) fromate?

0 Answers   Wipro,


how to get column count in datatable

3 Answers  


What is qtpro?

0 Answers  


How to use Environment parameterization? Explain with an example.

0 Answers  


While testing .net applications with QTP 9.1 in normal recording mode, QTP records my unintentional mouse clicks and window dragging which I don't want. But I can't stop QTP recording those mouse clicks and window dragging. Can somebody let me know how I can get rid of it, please ! Thanks.

1 Answers  


There is an excel file of 1 to 100 sheets how you will iterate through it?

0 Answers  


what is test data

4 Answers   Wipro,


Write VB script to test given number is Prime Number

5 Answers   Oracle,


What are different types of frame works ?

3 Answers  


Categories