Click here to Skip to main content
15,891,184 members
Articles / Programming Languages / SQL

Correlated Sub-Query vs. Case Statement

Rate me:
Please Sign up or sign in to vote.
3.00/5 (6 votes)
7 Mar 2010CPOL4 min read 30.9K   60   6  
A simple case study to compare the efficiency of using a Sub-Query vs a Case statement to perform data aggregation.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Australia Australia
Born in New Zealand and transported to Australia for crimes against good taste in the eighties.

Employed by large Manufacturing Co to Coordinate Production Processes, Integrate new technologies, Implement new, in-house MRP/ERP.

Out of my depth, challenged and love it.

Comments and Discussions