SQL Code Smells
Posted
by Lijo
on Stack Overflow
See other posts from Stack Overflow
or by Lijo
Published on 2010-04-17T06:10:07Z
Indexed on
2010/04/17
6:13 UTC
Read the original article
Hit count: 307
sql
Hi Team,
Could you please list some of the bad practices in SQL, that novice people do?
I have found the use of "WHILE loop" in scenarios which could be resolved using set operations.
Another example is inserting data only if it does not exist. This can be achieved using LEFT OUTER JOIN. Some people go for "IF"
Any other thoughts?
Thanks
Lijo
© Stack Overflow or respective owner