Does anybody have any idea what the fastest code "style" is for SQL. I know of CURSOR which si slow as hell and WHILE but are there any other methods. Thankfully I don't code but my friend does, so I'm trying to see if I can help him improve our game's code at all. Current our query run time is 20 minutes which is too long in my opinion though I will admit it does have to do alot in that one query.