Hello everybody,
I have made a table having fields fruits, buysell, quantity, date and following data:
Fruits ---------------- Buysell ------------- Quantity ---------- Date
Orange ---------------- 1 ---------------- 1000 -------- 2003-12-01
Apple ------------------ 1 ---------------- 200 -------- 2003-12-01
Pineapple -------------- 1 ---------------- 700 -------- 2003-12-01
Apple ----------------- 1 ---------------- 500 -------- 2003-12-01
Orange ---------------- 2 ---------------- 1000 -------- 2003-12-01
Pinapple -------------- 2 ---------------- 500 -------- 2003-12-01
Here 1 is buy and 2 is sell, I want to display only those fruits which are not completely sold alongwith their leftover quantity i.e. Apple Remaining items 700 and Pinapple Remaining 200, I do not want Orange to be displayed as it is sold completely.
Please help me out.