I am querying a table in DB2 to retrieve a list of items stored in the records. I am comparing two methods for performance and can't really tell that either is faster.
Query 1:
SELECT DISTINCT CUSIPFROM EQUITY_POSITIONSORDER BY CUSIP
Query 2:
SELECT CUSIPFROM EQUITY_POSITIONSGROUP BY CUSIPORDER BY CUSIP
So my question is, should one be faster?
Programmer's Corner - Tutorials, Source Code, and Help Forums for C#, C++, Java, VB, VB.NET, and Web Development.