
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 TrivediPosted Mar 18, 2013, 9:02 AM
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.