/*****************************************************************************
*
* 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       - 
*
* Design Spec
* Section          - 
*
* Contents         - Live Schema View
*
* Language         - Oracle SQL*Plus script
*
* Classification   - Commercial In Confidence
*
*          (c) Ultra Electronics Limited, 1997
*
*****************************************************************************/
/****************************************************************************
* @(#)$Workfile:   bag_v15.sql  $  $Revision:   1.3  $
*
* Revision History
*
* Note that user tagtrak is many users. For these users the user
* name is entered as the last line in the change description.
*
* $Log:   /shared/pvcs/aisarch/db_ora/db/source/live/views/bag_v1.svl  $
* 
*    Rev 1.3   12 Sep 2002 17:55:06   tagtrak
* OR:
* CR: 15644
* DESC: BA BRS Segregation changes
* 
*    Rev 1.2   21 Jun 2001 15:36:40   tagtrak
* OR:
* CR:
* Re-baseline version 4.0.0 to include patches.
* 
*    Rev 1.1   02 Apr 1998 19:47:40   tagtrak
* OR:
* CR:
* REV:
* Initial Issue
* See label for concession
* 
*    Rev 1.0   22 Oct 1997 16:50:38   tagtrak
* OR:
* CR:
* REV:
* Initial check-in
*
****************************************************************************/

PROMPT Creating view   BAG_V15   ;
CREATE OR REPLACE FORCE VIEW   BAG_V15   (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  
) 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,  LTRIM(TO_CHAR(bag.bag_tag3, '000000')),  bag.location_code,  bag.scanner_id,  bag.uld_flight_id, bag.security_clearance_status,bag.connection_type  from  bag  ;

