/*****************************************************************************
*
* Filename         - $Workfile:   bag_v1.sql  $
*
*                     Name              Date      Version     CR Number
* Author           - See revision history below.
* Last Update      - See revision history below.
*
* Project Name     - TAGTRAK(Oracle Database)
*
* Source Code
* Identifier       - 0/3/300/8010/112
*
* Design Spec
* Section          - 
*
* Contents         - Live Schema View
*
* Language         - Oracle SQL*Plus script
*
* Classification   - Commercial In Confidence
*
*          (c) Ultra Electronics Limited, 1997
*
*****************************************************************************/

PROMPT Creating view   BAG_V1   ;
CREATE OR REPLACE FORCE VIEW   BAG_V1   (BAG_TAG  , PAX_ID  , ULD_NO  , AUTHORITY_TO_LOAD_DCS  , AUTHORITY_TO_LOAD_BRS  , UNASSOCIATED_BAG  , BAG_DESTINATION  , BAG_EXCEPTION  , BAG_SOURCE_INDICATOR  , LOADED_STATUS  , BAG_SEQUENCE_NO  , TIME_LOADED  , TIME_BAG_STORED  , DELETE_MARKER  , BAG_TAG1  , BAG_TAG2A  , BAG_TAG2B  , BAG_TAG3  , LOCATION_CODE  , SCANNER_ID  , ULD_FLIGHT_ID, SECURITY_CLEARANCE_STATUS, CONNECTION_TYPE, GROUP_NO, AUTHORITY_SOURCE
) as
  select  bag.bag_tag,  bag.pax_id,  bag.uld_no,  bag.authority_to_load_dcs,  bag.authority_to_load_brs,  bag.unassociated_bag,  bag.bag_destination,  bag.bag_exception,  bag.bag_source_indicator,  bag.loaded_status,  bag.bag_sequence_no,  to_char(bag.time_loaded, 'HH24:MI'),  to_char(bag.time_bag_stored, 'HH24:MI'),  bag.delete_marker,  bag.bag_tag1,  bag.bag_tag2a,  bag.bag_tag2b,  bag.bag_tag3,  bag.location_code,  bag.scanner_id,  bag.uld_flight_id, bag.security_clearance_status,bag.connection_type, bag.group_no, bag.authority_source  from  bag  ;

