1) If the field is NOT in FLIGHT_VFR, ignore it.
2) If the field is in FLIGHT_VFR, but not in TRACK_VFR, include it with
NULL values
3) FID=track_vfr.flight_index
4) ACT_DATE=to_date(to_char(start_time,'YYYYMMDD'),'YYYYMMDD')
How can create it? I have tried
"
Create view flight_test as
(select a.acid, a.start_time, a.dep_aprt, a.end_time, a.arr_aprt, a.abc,
a.acft_equip, a.acft_type, a.ads, a.commpression, a.maxdisterr, a.cnt, a.trackpoints, a.num_acft, a.flight_index, a.tcas_heavy, a.flight_rule, b.act_date, b.arr_aprt_assigned, b.runway_assigned, b.runway1_score, b.runway2_score, b.on_time, b.physical_class, b.user_class
FROM track_vfr a, flight_vfr b
WHERE a.flight_index(+) = b.FID
AND b.act_date=to_date(to_char(start_time,'yyyymmdd'), 'yyyymmdd')
);
but the result is not corrected... any helps would appreciated
How to ask a question:
1. Include create table statement, PK etc
2. Include INSERT statements for the table
3. Include output rows.
4. Include Business rules
5. Include your own SQL statement
Bookmarks