difference between function and procedure

Answer Posted / ramya gurrala

Functions:1)Do calculations mostly.
2)Must return value.
3)Calling methods.
4)Function can stand alone.


Procedure:1)Do actions mostly.
2)May or may not return value(the return method is not same as function method).
3)Calling methods.
4)Procedure can not stand alone.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are security principals used in sql server 2005?

519


tell me the disaster recovery plan

2031


What is rolap and its advantage? : sql server analysis services, ssas

651


What is #table in sql server?

539


Define Wed Edition in SQL Azure?

80






Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

546


Explain triggers in sql?

558


What are the purpose of Normalisation?

642


What is RMS migrations?

1711


Does a full backup include transaction log?

485


How do I manually uninstall an instance of sql server 2016?

552


Explain in brief how sql server enhances scalability of the database system?

481


Explain the third normal form(3nf)?

527


How do I create a trace in sql server?

520


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

553