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 are sql functions? Describe in brief different types of sql functions?

0 Answers  


What is varchar example?

0 Answers  


Source is Sales Table: Sno Prod Sales Sales_Amount 1 A 10 2000 2 A 20 1000 3 C 10 3000 4 D 30 4000 5 A 20 1000 Target : Sales_Count T_Sales_Amt Sales_Count(A) T_Sales_Amt(A) 90 11000 50 4000 In single query, pls tell me.

5 Answers   CGI,


What is crud diagram?

0 Answers  


Can we join two tables without common column?

0 Answers  






What is the difference between execution of triggers and stored procedures?

0 Answers  


how to retrieve the top 3 salaries of the table using rownum

31 Answers   Oracle,


Is not null in sql?

0 Answers  


What is the usage of when clause in trigger?

0 Answers  


What are instead of triggers?

0 Answers  


List and explain the different types of join clauses supported in ansi-standard sql?

0 Answers  


What does plv msg allows you to do?

0 Answers  


Categories