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
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 |
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 |
What are sql functions? Describe in brief different types of sql functions?
What is varchar example?
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.
What is crud diagram?
Can we join two tables without common column?
What is the difference between execution of triggers and stored procedures?
how to retrieve the top 3 salaries of the table using rownum
Is not null in sql?
What is the usage of when clause in trigger?
What are instead of triggers?
List and explain the different types of join clauses supported in ansi-standard sql?
What does plv msg allows you to do?