| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Neil Tompkins | Date: | May 7 2008 7:24pm |
| Subject: | Order Problem | ||
| View as plain text | |||
Hi All, I've the following query :SELECT ProductID FROM Products WHERE Enabled= ' Yes' AND ProductID IN(varProductID) This query works fine. However the query result is in a different order to what I passed in varProductID. How can I order the results based on my list like varProductID = "1000,2500,1500" At the moment the result is 1000 1500 2500 But I want 1000 2500 1500 Thanks, Neil _________________________________________________________________ Discover and Win with Live Search http://clk.atdmt.com/UKM/go/msnnkmgl0010000007ukm/direct/01/
| Thread | ||
|---|---|---|
| • Query/Key Optimization | Michael Stearne | 6 May 2008 |
| • Re: Query/Key Optimization | Michael Stearne | 6 May 2008 |
| • Re: Query/Key Optimization | Krishna Chandra Prajapati | 7 May 2008 |
| • question about update/join query | Andy Wallace | 7 May 2008 |
| • Re: question about update/join query | Andy Wallace | 7 May 2008 |
| • Order Problem | Neil Tompkins | 7 May 2008 |
| • Re: question about update/join query | Andy Wallace | 8 May 2008 |
| • Re: question about update/join query | Andy Wallace | 8 May 2008 |
| • Re: question about update/join query | Andy Wallace | 8 May 2008 |
| • RE: Order Problem | Neil Tompkins | 8 May 2008 |
| • Re: Order Problem | Moon's Father | 20 May 2008 |
| • Re: question about update/join query | Andy Wallace | 8 May 2008 |
