Repetitive SQL: What does it mean?

Posted by Lijo on Stack Overflow See other posts from Stack Overflow or by Lijo
Published on 2010-04-17T07:41:41Z Indexed on 2010/04/17 7:43 UTC
Read the original article Hit count: 213

Filed under:

Hi

In a different post I got a reply that tells about Repetitive SQL. Could you please explain what is Repetitive SQL?

http://stackoverflow.com/questions/2657459/sql-code-smells

I thought to make it a new post as it is a different subject. The reply says that use of "multiple stored procedures that perform the exact same joins but different filters" can be avoided using VIEWs.

Could you please give an example that can only be achieved using repetitive queries, if we are using Stored Proecure? [The same can be achieved without repetition when used VIEWS]

Thanks

Lijo

© Stack Overflow or respective owner

Related posts about sql