Link to home
Start Free TrialLog in
Avatar of Jaymin Sathavara
Jaymin Sathavara

asked on

I have following table.I want Query in SQL as per output Table

User generated imageI have add one column like 'AdditionQty' and value of that column like which orderid is '0' for particular Adviceid as well as Itemid. Second one is if Orderid  0 is found but that itemid  is not match  in that Adviceid then min adviceid add that Qty as AdditionQty.I want output like below table...

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Provided solution
question abandoned.