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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / john

simple query s best as we can issue query by giving various
condition and it will not get stored in database where as a
procedure will get stored in database and gotta occupy
memory.so its waste of memory and time to create a
procedure rather than issuing a si9ngle query

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What is sqlcommand?

0 Answers  


How to retrieve Duplicate Rows only in a Table? Suppose if a Table Name is "Education". It consists of multiple columns. Then if we insert rows into this table with duplicate records then how can we retrieve only duplicate records from that table?

28 Answers   Alps, Aricent, Bank Of America, Wipro,


Which one is faster ienumerable or iqueryable?

0 Answers  


What is sql basics?

0 Answers  


what is sp_pkeys? : Transact sql

0 Answers  






how u can find the n row from a table?

19 Answers   Tech Mahindra,


What is the purpose of the partition table?

0 Answers  


what are the join types in tsql? : Transact sql

0 Answers  


what is a cursor? : Sql dba

0 Answers  


Explain what is sql?

0 Answers  


What are the popular database management systems in the it industry?

0 Answers  


What is use of package in pl sql?

0 Answers  


Categories