BobCSD, you should be able to do that with CASE if I am understanding you correctly.
So instead of:
(order by ListOrder,:MYORDER)
you could have:
(order by ListOrder, CASE WHEN @pageMovedHigher = 1 AND questionValueId = @questionValueId THEN 1 WHEN @pageMovedHigher = 1 AND questionValueId <> @questionValueId THEN 0 WHEN questionValueId = @questionValueId THEN 0 ELSE 1 END)
As long as you properly pass in the parameters to the OracleCommand object.
Hope that helps.
--isa
Main Topics
Browse All Topics





by: BobCSDPosted on 2009-08-25 at 08:16:38ID: 25178468
associating an email addy. nevermind this one. wish you could do that by just editing your question when you forget. Or just have a default to it.