Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

CAWIS needs to provide a VIEW to BII (or any other requesting application) so that inquiries can be directed to one source which allows for a reckoning of all known aircraft, all flight hours for all available years and the associated anaylsis codes for any desired breakdowns.

Data notes : flight hours data has been collected historically since 1994 (though 1994 itself, is very incomplete)

The Operating Rule data (found on Y02) is terribly incomplete/inaccurate. Unfortunately this is the data element most frequently requested for breakdowns. Any conclusions drawn from this data should be considered highly suspect. (all requestors have been notified)

 OPRULES

 CODE DESC               

---- --------------------

406  FLIGHT TRAINING UNIT

604  PRIVATE-OP PASSENGER

701  FOREIGN AIR OPS     

702  AERIAL WORK         

703  AIR TAXI OPS        

704  COMMUTER OPS        

705  AIRLINE OPS         

999  UNDEFINED           

OPRULE (aka, Operating Rule/License Type/CAR) is acquired from NAPA. Unfortunately, the data is NOT completely reliable as is presented. It’s simply 2 columns - Tail_mark, and Operating_rule - reviewed & kept up to date, each night in our CCARCS/CAWIS synchronization routines.

However, only approximately 7800 of 37,000 registered aircraft are accounted for in this data link. In instances where NO OPRULE is provided for a specific tail-mark, the last known OPRULE remains in effect on that specific aircraft in CAWIS. In instances where an OPRULE is never provided, it stays at 999 – Unknown.

So, an aircraft may operate over a given year, under multiple Operating rules, for differing periods of time, but NAPA only provides to CAWIS, the numerically “highest” operating rule found for that aircraft.

 So if an aircraft flew under 705 & 704 in a given year  - CAWIS would only record it as having flown under 705.

There exists a long standing request (from AVSTATS) that flight hours be broken down by operating rule when the operators submit their AAIR, though no action has ever been taken. (requires a change to the regulation, the printed form, the AAIR code etc)

The Public AAIR data view should look something like this :

/*

SELECT Y01.AIRCRAFT_ID AS AIRCRAFT_ID,
TRIM(Y02.AIRCRAFT_MARK_ID) || ' ' AS MARK,
TR26.YEAR_CALENDAR_NBR AS REPORTING_YEAR,
TO_CHAR(Y01.DATE_CURRENT_DTE,'YYYY-MM-DD') AS ENTRY_DATE,
DECODE(TRIM(Y93.MARK),NULL,'N','Y') || ' ' AS ACTIVE_IND,
REPLACE(
DECODE(Y93.SALE_REPORTED,'Y','SR',NULL) ||
DECODE(Y93.ACTIVE_FLAG ,'I','IA',NULL),
'SRIA','SR')
|| ' ' AS SRIA ,
Y01.YEAR_OF_MANUFCTURE_NBR || ' ' AS YEAR_MFG,
Y02.YEAR_OF_IMPORT_NBR || ' ' AS YEAR_IMPORT,
Q01.TYPE_OF_AUTHORITY_CD || ' ' AS FLIGHT_AUTHORITY,
Y02.AIRCRAFT_PURPOSE_CD || ' ' AS PURPOSE,
Y02.AIRCRAFT_LICENSE_TYPE_CD || ' ' AS OPERATING_RULE,
Y03.WEIGHT_NBR || ' ' AS MAX_TAKEOFF_LBS,
GET_MANUFACTURER_NAME(Y04.MANUFACTURER_ID) AS AIRCRAFT_MFG,
Y04.MODEL_ID AS AIRCRAFT_MODEL,
Y62.GROUP_ID || ' ' AS GROUP_ID,
Y04.SERIAL_ID AS SERIAL_NUMBER,
Y50.PARTY_TYPE_CD || ' ' AS OWNER_TYPE,
REPLACE( REPLACE ( REPLACE (
TRIM(Y50.NOTES_TXT),CHR(9),' '),CHR(10),' '),CHR(13),' ')
|| ' ' AS OWNER,
Y50.CLIENT_ID || ' ' AS CLIENT_ID,
Y02.TC_REGION_CD || ' ' AS REGION,
Y02.TCC_OFFICE_FILE_LOCATION_CD AS TC_CENTRE,
DECODE(M01.DATE_AAIR_RECEIPT_DTE,NULL,'N','Y') AS RECD_IND,
( SELECT ROUND(X.HOURS_FLOWN_NBR) FROM Q02_AIRCRFT_LCNS_TYP_HR X
WHERE X.AIRCRAFT_ID = Y01.AIRCRAFT_ID
AND X.FLYING_HOURS_TYPE_CD = 1
AND X.YEAR_CALENDAR_NBR = TR26.YEAR_CALENDAR_NBR ) || ' ' AS TIME_SINCE_NEW,
( SELECT ROUND(X.HOURS_FLOWN_NBR) FROM Q02_AIRCRFT_LCNS_TYP_HR X
WHERE X.AIRCRAFT_ID = Y01.AIRCRAFT_ID
AND X.FLYING_HOURS_TYPE_CD = 2
AND X.YEAR_CALENDAR_NBR = TR26.YEAR_CALENDAR_NBR ) || ' ' AS YEARLY_HOURS,
( SELECT ROUND(X.HOURS_FLOWN_NBR) FROM Q02_AIRCRFT_LCNS_TYP_HR X
WHERE X.AIRCRAFT_ID = Y01.AIRCRAFT_ID
AND X.FLYING_HOURS_TYPE_CD = 3
AND X.YEAR_CALENDAR_NBR = TR26.YEAR_CALENDAR_NBR ) || ' ' AS TRAINING_HOURS,
( SELECT ROUND(X.HOURS_FLOWN_NBR) FROM Q02_AIRCRFT_LCNS_TYP_HR X
WHERE X.AIRCRAFT_ID = Y01.AIRCRAFT_ID
AND X.FLYING_HOURS_TYPE_CD = 4
AND X.YEAR_CALENDAR_NBR = TR26.YEAR_CALENDAR_NBR ) || ' ' AS OTHER_HOURS

FROM Y01_AIRCRAFT Y01 ,
Y02_AIRCRAFT_HISTORY Y02 ,
Y03_AIRCRFT_TKFF_WGHT Y03 ,
Y04_AIRCRAFT_CONFIGURATION Y04 ,
Y93_CCARCS_PREVIOUS_DAY Y93 ,
Y53_PARTY_LIST Y53 ,
Y50_PARTY Y50 ,
Q01_AIRCRFT_FLGHT_ATHTY Q01 ,
M01_AIRCRAFT_AAIR_REPORT M01 ,
TR26_REPORTING_YEAR TR26,
Y62_PRODUCT_MAKE_MODEL Y62

WHERE Y02.AIRCRAFT_ID = Y01.AIRCRAFT_ID
and Y93.AIRCRAFT_ID (+) = Y01.AIRCRAFT_ID
--- JOIN Y01 MAIN, Y02 HISTORY, AND Y93 CCARCS SNAPSHOT

AND Y02.DATE_START_DTE =
NVL(
(SELECT MAX(X.DATE_START_DTE) FROM Y02_AIRCRAFT_HISTORY X
WHERE X.AIRCRAFT_ID = Y01.AIRCRAFT_ID
AND TO_NUMBER(TO_CHAR(X.DATE_START_DTE,'YYYY')) <= TR26.YEAR_CALENDAR_NBR),
(SELECT MAX(X.DATE_START_DTE) FROM Y02_AIRCRAFT_HISTORY X
WHERE X.AIRCRAFT_ID = Y01.AIRCRAFT_ID ))
-- WE WANT THE HISTORY RECORD THAT IS AS CLOSE AS POSSIBLE TO THE REPORTING YEAR IN QUESTION

AND Y53.AIRCRAFT_PARTY_LIST_ID = Y01.AIRCRAFT_ID
AND Y53.DATE_START_DTE =
NVL(
(SELECT MIN(X.DATE_START_DTE) FROM Y53_PARTY_LIST X
WHERE X.AIRCRAFT_PARTY_LIST_ID = Y01.AIRCRAFT_ID
AND X.PARTY_ID <> 9999999
AND X.DATE_START_DTE
BETWEEN TO_DATE(DECODE(X.PARTY_ID, 9999999,TR26.YEAR_CALENDAR_NBR - 1, TR26.YEAR_CALENDAR_NBR)
|| '0101','YYYYMMDD')
AND SYSDATE ), (SELECT MAX(X.DATE_START_DTE) FROM Y53_PARTY_LIST X WHERE X.AIRCRAFT_PARTY_LIST_ID = Y01.AIRCRAFT_ID AND X.PARTY_ID <> 9999999))

-- WE WANT THE OWNER OF THE AIRCRAFT DURING THAT REPORTING YEAR

and Y50.PARTY_ID = Y53.PARTY_ID
-- GET OWNER NAME AND TYPE

AND Y03.AIRCRAFT_ID = Y01.AIRCRAFT_ID
and Y03.WEIGHT_TYPE_CD = 3
-- GET MAX TAKEOFF WEIGHT

AND Y04.AIRCRAFT_ID = Y01.AIRCRAFT_ID
and Y04.PRODUCT_TYPE_CD = 'A'
-- GET AIRCRAFT MFG/MODEL/SERIAL CONFIGURATION

AND Y62.PRODUCT_TYPE_CD = 'A'
AND Y62.MANUFACTURER_ID = Y04.MANUFACTURER_ID
AND Y62.MODEL_ID = Y04.MODEL_ID
-- GET GROUP ID FROM Y62 MODEL TABLE TO ALLOW FOR BROADER AIRCRAFT TYPE SUMMATIONS

AND TR26.YEAR_CALENDAR_NBR BETWEEN 2010 AND (TO_NUMBER(TO_CHAR(SYSDATE,'YYYY')) - 1)
-- MINIMUM REPORTING YEAR IS 1994 (VERY INCOMPLETE)
-- MAXIMUM REPORTING YEAR IS CURRENT YEAR - 1 (SHOULD BE CONSIDERED INCOMPLETE UNTIL 31-DEC)

AND M01.AIRCRAFT_ID = Y01.AIRCRAFT_ID
AND M01.YEAR_CALENDAR_NBR = TR26.YEAR_CALENDAR_NBR
-- THIS GIVES US ALL AIRCRAFT ASKED TO REPORT DURING ANY GIVEN REPORTING YEAR

and Q01.AIRCRAFT_ID = Y01.AIRCRAFT_ID
and Q01.ORDINAL_POSITION_NBR = 1 ;
-- FLIGHT AUTHORITY -- STAYS SAME EVERY YEAR, NOT RECORDED HISTORICALLY

*/

DATA DESCRIPTIONS

AIRCRAFT_ID

UNIQUE NUMERIC IDENTIFIER FOR THIS AIRCRAFT ON THE CANADIAN REGISTER ALLOCATED BY CCARCS (Canadian Civil Aircraft Register)

MARK

AIRCRAFT TAIL MARK DURING THIS REPORTING YEAR - BEGINS WITH 'F' OR 'G' ( 'I' is not included ultralights do not report flight hours )  An aircraft may change its tail mark many times over its lifetime

REPORTING_YEAR

REPORTING YEAR - 2010 THRU CURRENT YEAR - 1.  THIS REPORT ONLY INCLUDES AIRCRAFT FOR WHICH A REQUEST TO REPORT WAS ISSUED BY TC FOR REPORTING OF THAT CALENDAR YEAR - THE CURRENT "REPORTING YEAR" IS ALWAYS = CURRENT YEAR - 1 . DATA FOR THE CURRENT REPORTING YEAR IS NOT CONSIDERED COMPLETE UNTIL 31-DECEMBER OF THE FOLLOWING YEAR (aka THE COLLECTION YEAR) 

ENTRY_DATE

ENTRY-DATE - INDICATES THE FIRST APPEARANCE OF THIS AIRCRAFT IN CAWIS (A DEFAULT DATE OF 1994 WAS USED FOR MUCH OF THE LEGACY DATA TAKEN FROM THE OLD MAINFRAME APP, CAIS) 

ACTIVE_IND

ACTIVE INDICATOR - IS THIS AIRCRAFT ON THE CURRENT REGISTER ?

SRIA

SALE REPORTED - OR - INVALID ADDRESS  - THESE AIRCRAFT/OPERATORS ARE UNCONTACTABLE - THERE EXISTS AN INDICATION THAT AAIR WAS REQUESTED BUT NONE WAS RECEIVED.  MANY SALE REPORTED AIRCRAFT HAVE BEEN DESTROYED, AND OWNERSHIP WAS TAKEN OVER BY INSURANCE COMPANIES, WHO DO NOT IDENTIFY THEMSELVES TO TC. MANY OTHER OF THESE AIRCRAFT APPEAR ON FOREIGN REGISTRIES.

YEAR_MFG

YEAR OF MANUFACTURE - NOTE -  AN AIRCRAFT LISTED HAVING BEEN CONSTRUCTED DURING THE CURRENT YEAR WILL NOT BE ISSUED A REQUEST FOR FLIGHT HOURS

YEAR_IMPORT

YEAR OF IMPORT - NOTE -  AN AIRCRAFT LISTED HAVING BEEN IMPORTED DURING THE CURRENT YEAR WILL NOT BE ISSUED A REQUEST FOR FLIGHT HOURS, DESPITE THE POSSIBLITY IT MAY HAVE BEEN ON THE REGISTER UNDER OTHER OWNERSHIP DURING THE PREVIOUS YEAR

FLIGHT_AUTHORITY

FLIGHT_AUTHORITY 
CODE DESCR               
---- --------------------
A    C-OF-A              
B    RESTRICTED          
C    OWNER MAINT         
D    LIMITED             
E    EXHIBITION          
F    AMATEUR BUILT       
G    EXPERIMENTAL        
H    ULTRA-LIGHT          - DOES NOT REPORT
I    ADV ULTRA-LIGHT      - DOES NOT REPORT
J    SPECIFIC PURP       
K    SPECIAL PURPOSE     
L    NON-TYPE CERTIFIED  

PURPOSE

AIRCRAFT_PURPOSE  DURING THE GIVEN REPORTING YEAR

CODE  DESCR               
----- --------------------
1     PRIVATE             
2     COMMERCIAL          
3     STATE               
4     UNKNOWN             
9     MILITARY             

OPERATING_RULE

PRIMARY OPERATING RULE DURING THE REPORTING YEAR (ONLY THE NUMERICALLY HIGHEST OP RULE IS SAVED TO THE DATABASE)

CODE DESCR               
---- --------------------
406  FLIGHT TRAINING UNIT
604  PRIVATE-OP PASSENGER
701  FOREIGN AIR OPS     
702  AERIAL WORK         
703  AIR TAXI OPS        
704  COMMUTER OPS        
705  AIRLINE OPS         
999  UNDEFINED 

MAX_TAKEOFF_LBS

MAXIMUM TAKE OFF WEIGHT POUNDS 

AIRCRAFT_MFG

AIRCRAFT MANUFACTURER

AIRCRAFT_MODEL

AIRCRAFT MODEL - AN 'X' SUFFIX INDICATES AN OWNER-MAINTAINED VERSION OF THIS TYPE OF MODEL

GROUP_ID

AIRCRAFT GROUP CODE FOR BII TOTALLING PURPOSES 

SERIAL_NUMBER

AIRCRAFT SERIAL NUMBER

OWNER_TYPE

1-INDIVIDUAL, 2-ORGANIZATION

OWNER

LAST OWNER OF THE AIRCRAFT DURING THE REPORTING YEAR  ( MANY MISSING VALUES ARE FROM CAIS/CAWIS CONVERSION AS HISTORICAL CCARCS OWNERSHIP DATA WAS NOT AVAILABLE ) 

CLIENT_ID

OWNER CLIENT_ID AS ASSIGN BY CCARCS 

REGION

TC_REGION

CODE DESCR               
---- --------------------
1    PACIFIC             
3    PNR                 
4    ONTARIO             
5    QUEBEC              
6    ATLANTIC            
7    NCR                 
9    OUTSIDE CANADA   

TC_CENTRE

TC_FILE_LOCATION

CODE DESCR                REGN PROV
---- -------------------- ---- ----
99   -                    9    XX  
00   --                   7    XX  
51   ABBOTSFORD           1    BC  
21   ALMA                 5    QC  
09   CALGARY              3    AB  
25   DORVAL               5    QC  
06   EDMONTON             3    AB  
28   EDMONTON CTR         3    AB  
53   GOOSE BAY            6    NF  
50   HALIFAX              6    NS  
18   HAMILTON             4    ON  
05   KELOWNA              1    BC  
14   KINGSTON             4    ON  
15   LONDON               4    ON  
27   MONCTON              6    NB  
26   NCR                  7    ON  
16   OTTAWA               4    ON  
17   PEARSON INT          4    ON  
04   PRINCE GEORGE        1    BC  
23   QUEBEC               5    QC  
02   RICHMOND             1    BC  
12   SASKATOON            3    SK  
55   SEPT ISLES           5    QC  
24   ST-HUBERT            5    QC  
54   ST. JOHNS            6    NF  
20   SUDBURY              4    ON  
19   THUNDER BAY          4    ON  
13   TORONTO              4    ON  
22   VAL D`OR             5    QC  
01   VANCOUVER            1    BC  
03   VICTORIA             1    BC  
10   WHITEHORSE           3    YT  
11   WINNIPEG             3    MB  
07   YELLOWKNIFE          3    YT  

RECD_IND

WAS A REPORT RECEIVED FOR THIS REPORTING YEAR ?  ( THERE IS 1 RECORD ON THIS TABLE FOR EVERY AIRCRAFT THAT WAS REQUIRED TO REPORT DURING THIS REPORTING YEAR - RESPONSE RATES WOULD BE CALCULATED AS  [(TOTAL RECORDS FOR YEAR - SRIA - CURRENT YEAR BUILT ) / RECD=Y]

TIME_SINCE_NEW

TIME SINCE NEW FOR THAT REPORTING YEAR ( NOT NECESSARILY CUMULATIVE, ENTRY ERRORS WERE MADE FROM YEAR TO YEAR)

YEARLY_HOURS_FLOWN

TOTAL HOURS FLOWN BY THIS AIRCRAFT DURING THIS REPORTING YEAR

TRAINING_HOURS

TRAINING HOURS DURING THIS REPORTING YEAR

OTHER_HOURS

OTHER TYPE HOURS DURING THIS REPORTING YEAR

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.