Hi,
How to retrieve the multiple values in progress? I want to retrieve multiple flight number for each aircraft.
For example in SQL :
SELECT * FROM SECTOR S WHERE S.latest-dep-date >= 08/06/09 AND S.latest-dep-date <='08/01/09' AND S.SERIAL ='EAA' AND S.FLIGHT-NO IN ('0265','0568','0489')
How to write the same query in Progress:
FOR EACH sector WHERE sector.latest-dep-date >= 08/06/09
AND sector.latest-dep-date <= 08/06/09 and sector.serial = 'EAA' and sector.flight-no in ('0265','0568','0489') NO-LOCK :
FIND uobj-tag WHERE uobj-tag.parent-obj-id = sector.obj-id
AND uobj-tag.tag-name = 'Fuel'
NO-ERROR.
IF NOT AVAIL(uobj-tag) THEN DO :
CREATE uobj-tag.
ASSIGN uobj-tag.parent-obj-id = sector.obj-id
uobj-tag.tag-name = 'Fuel'.
END.
END
The above query is not accepting, I am getting a syntax error.
Please help me.
Regards
Nihar
How to retrieve the multiple values in progress? I want to retrieve multiple flight number for each aircraft.
For example in SQL :
SELECT * FROM SECTOR S WHERE S.latest-dep-date >= 08/06/09 AND S.latest-dep-date <='08/01/09' AND S.SERIAL ='EAA' AND S.FLIGHT-NO IN ('0265','0568','0489')
How to write the same query in Progress:
FOR EACH sector WHERE sector.latest-dep-date >= 08/06/09
AND sector.latest-dep-date <= 08/06/09 and sector.serial = 'EAA' and sector.flight-no in ('0265','0568','0489') NO-LOCK :
FIND uobj-tag WHERE uobj-tag.parent-obj-id = sector.obj-id
AND uobj-tag.tag-name = 'Fuel'
NO-ERROR.
IF NOT AVAIL(uobj-tag) THEN DO :
CREATE uobj-tag.
ASSIGN uobj-tag.parent-obj-id = sector.obj-id
uobj-tag.tag-name = 'Fuel'.
END.
END
The above query is not accepting, I am getting a syntax error.
Please help me.
Regards
Nihar