answersLogoWhite

0


Best Answer

In earlier days, a cursor had been a lot slower. Hence any seasoned database programmer may opt NOT to write queries with cursors. I also encountered some writing complex queries with temp tables and lots of joins to avoid using of cursors.

The actual answer to the question depends on:

  • You must to run the queries to compare them. Not all the cases are the same. You may have cursor version running faster this time, but the next similar query/problem, the sub-queries version runs faster
  • If the differences are not significant, or the query is not that critical in execution usage, choose the one easier to understand and maintain by your team. Sometimes, this is more important than a "faster" query.
User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which is faster A cursor made in an sql query or having the the cursor divided into multiple queries and working with them on code level?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What cursor type do you use to retrieve multiple recordsets?

user defined cursor


What is cursors in oracle?

cursor is used to retrive multiple rows at a time


What are two method of retrieving SQL?

1.what cursor type do you use to retrieve multiple recordsets? 2.What are two methods of retrieving SQL?


What is the small mark on the computer monitor and position of the next letter or number to be entered?

It is the cursor, which is arrow-shaped pointer. It becomes |-shaped when working on a document that uses numbers and letters.


When you're working with processing document and you press the DEL key what happens?

The character to the right of the cursor is deleted.


When working with a word processing document and press the del key what happens?

The character to the right of the cursor is deleted.


When you're working with a processing document and you press the DEL key What happen?

The character to the right of the cursor is deleted.


When you working with a word processing document and you press Del key what happens?

the character to the right of the cursor is deleted


What does it mean to have a clean desktop?

my start button is not working every thing is blank while moving cursor


When you're working with a word processing documents and you press the Del key what happen?

The character to the right of the cursor is deleted.


When you're working with the word processing documents and you press the Del key what happens?

The character to the right of the cursor is deleted.


What happens When you're working with a word processing document and you press the Del key?

The character to the right of the cursor is deleted.