Could you list some of the bad SQL practices that newbies do?
I found using a WHILE loop in scripts that can be resolved using set operations.
Another example is inserting data only if it does not exist. This can be achieved using the LEFT OUTER JOIN. Some people go to "IF"
Any other thoughts?
Edit: I am looking for specific scenarios (as mentioned in the question) that can be achieved using SQL without using procedural constructs
thanks
Lijo
sql
Lijo
source share