
What I want is Write a SELECT statement that answers this question:
select orderID from order where customer id = @custID and Total cashmovementValue for current order id is less than total (sold quantity * salePrice ) for current order id.
How to do it?
Thanks.

Jignesh TrivediRank #16 · 50.3K pointsPosted Mar 18, 2013, 5:02 AM EDT
hi,
I am try to understand you query, but i am fail
can you please provide more information and Business Logic?
also share you full data base structure so that i can help you.