|
|
Re: Report fires everyday for cancelled orders [message #519153 is a reply to message #518836] |
Wed, 10 August 2011 02:10 |
|
fayas
Messages: 23 Registered: August 2011 Location: bangalore
|
Junior Member |
|
|
Thanks for your reply.
For order_cancelled:
When the an order is cancelled then the line amount will automatically set to zero by an concurrent program.
Now, My concern is that the report has to identify the quotes for multiple order numbers associated with it and line amount(line amount is in other table say table b) on the first order,but not on the related orders, where both orders have order type
I.e. quote_number Order_number creation_date
103 100 6/7/11
103 100 6/28/11
103 100 6/31/11
select Quote_number, order_number
from table a
where
Creation_date = (select min(creation_date) from table a
)
having count(order_number) > 1
group by Quote_number, order_number
can you pls help me to build the query on this.
|
|
|