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...

I need to write a simple query,which one is better select
statement or stored procedure?and why?

Answer Posted / sudipta santra

A simple query because through query we can throw the result
of the data based on conditions but in stored procedure we
can not , as the procedure is used for the specific time
based for the specific value return through out/IN out .

A simple query is best. But it is wrong that we can not do
through a proc, we can do but the effort will take more.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is truncate ddl or dml?

1032


how to install mysql? : Sql dba

1154


What is mutating table error?

1234


Why coalesce is used in sql?

1059


What is Materialized View? In What Scenario we Use Materialized View?

9608


Why are sql stored procedures used?

1091


What is a heap in sql?

1133


Mention what does the hierarchical profiler does?

1132


write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

1011


what is 'mysqlimport'? : Sql dba

1104


How to return an array from java to pl/sql?

1176


Why do we use joins in sql?

1004


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

3099


What is the example of procedure?

973


What are aggregate and scalar functions?

1081