Quantcast
Channel: Answers for "Set-Based vs. Procedural"
Browsing all 16 articles
Browse latest View live

Answer by David 1

One of the motivations of E.F.Codd when he first proposed the Relational Model of data was to devise a system that didn't require the looping, branching and step-at-a-time processing used in imperative...

View Article



Answer by Matt Whitfield

The best analogy I have seen comes from Jeff Moden's signature on the main site. And that is that with procedural code you are probably thinking about what you want to do to a row. With set-based code...

View Article

Answer by Rob Farley

My preference for explaining this question comes down to the paradigm that database systems employ. When you really get into it, a database system runs on a computer, and eventually works things out...

View Article

Answer by Tom Staab

A procedural approach follows the paradigm of traditional languages used for applications. You perform a function then call another function and so on. When this method is used to retrieve data from a...

View Article

Answer by sbhollis

I landed here while trying to find something that described when it is not appropriate to use a set based language to solve a problem. Or in other words what types of algorithms don't lend themselves...

View Article


Answer by Magnus Ahlkvist

One little addition from me: We have many, many stored procedures which use cursors. Sure - some of them could probably be replaced by a set based approach. Some of them definitely by...

View Article

Answer by GPO

Although the discussion here has focussed on cursors to a large extent, my pet hate is scalar functions in SELECT statements, where the scalar functions contain (and very effectively hide) SELECT...

View Article

Answer by danlatimer

This isn't a complicated question and does not require a complicated answer: **Short Answer:** Databases are most efficient when you tell them what you want and let them figure out the most efficient...

View Article


Answer by David 1

One of the motivations of E.F.Codd when he first proposed the Relational Model of data was to devise a system that didn't require the looping, branching and step-at-a-time processing used in imperative...

View Article


Answer by Matt Whitfield

The best analogy I have seen comes from Jeff Moden's signature on the main site. And that is that with procedural code you are probably thinking about what you want to do to a row. With set-based code...

View Article

Answer by Rob Farley

My preference for explaining this question comes down to the paradigm that database systems employ.When you really get into it, a database system runs on a computer, and eventually works things out...

View Article

Answer by Tom Staab

A procedural approach follows the paradigm of traditional languages used for applications. You perform a function then call another function and so on. When this method is used to retrieve data from a...

View Article

Answer by sbhollis

I landed here while trying to find something that described when it is not appropriate to use a set based language to solve a problem. Or in other words what types of algorithms don't lend themselves...

View Article


Answer by Magnus Ahlkvist

One little addition from me: We have many, many stored procedures which use cursors. Sure - some of them could probably be replaced by a set based approach. Some of them definitely by...

View Article

Answer by GPO

Although the discussion here has focussed on cursors to a large extent, my pet hate is scalar functions in SELECT statements, where the scalar functions contain (and very effectively hide) SELECT...

View Article


Answer by danlatimer

This isn't a complicated question and does not require a complicated answer: **Short Answer:** Databases are most efficient when you tell them what you want and let them figure out the most efficient...

View Article
Browsing all 16 articles
Browse latest View live




Latest Images