If the number of results > 2500 then sort by company_name otherwise, sort by revenue;
Do I have to access 2 times? One is to get the number of results and the other one is for sort. The second query should be accessed by necessary. Any efficient way? Thanks, Jae