SQL gets a bad reputation from programmers that have a strictly procedural understanding of problem solving. 
When you are dealing with large amounts of data a SET based approach to data retrieval will likely be the better solution. The problem often comes from trying to bridge the procedural world with the set based world.