hi,
how do you use row values from the main query in the sub query. i am obtaining values of the rows in the main query by joining three tables and sub query will use data from the rows obtained.
the problem is for an forecasting spares inventory management system wherein i have to set earmarked items for the repairs of same type of equipment which will come in before the projected equipment/machinery.
four tables are like this
table 1
class_of_vehicle vehicle_type
table 2
vehicle_type make identification_code
table 3
identification_code part_no qty_to_use
table 4
vehicle_type part_no Available_qty
regards
ramesh