What are the advantages and disadvantages of performing data correlation in an application (that is, executing multiple queries and correlating the results) and using correlation queries directly?
In what scenarios do these two methods perform better?