/*****************************************************************************
*
* Filename         - $Workfile:   bag_trace_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         - Archive schema view
*
* Language         - Oracle SQL*Plus script
*
* Classification   - Commercial In Confidence
*
*          (c) Ultra Electronics Limited, 1997
*
*****************************************************************************/
/****************************************************************************
* @(#)$Workfile:   bag_trace_v1.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/tagtarch/db_ora/db/source/arch/views/bag_trace_v1.sqv  $
* 
*    Rev 1.3   02 Apr 1998 19:09:34   tagtrak
* OR:
* CR:
* REV:
* Initial Issue
* See label for concession
* 
*    Rev 1.2   28 Oct 1997 14:35:38   tagtrak
* Added PVCS header
*
****************************************************************************/

PROMPT Creating view   BAG_TRACE_V1   ;
CREATE OR REPLACE FORCE VIEW   BAG_TRACE_V1   (BAG_TRACE_TIME  , USER_ID  , LOCATION_CODE  , ERROR_ID  , BAG_TAG  , TRACE_ACTION  , SCANNER_ID  , FLIGHT_ID_SCAN  , BAG_TAG2B  , BAG_TAG3  , BAG_TAG1  , BAG_TAG2A  , PAX_ID, airport_code, RECORD_ID  
) as
  select  to_char(bag_trace.bag_trace_time, 'HH24:MI'),  bag_trace.user_id,  bag_trace.location_code,  bag_trace.error_id,  bag_trace.bag_tag,  bag_trace.trace_action,  bag_trace.scanner_id,  bag_trace.flight_id_scan,  bag_trace.bag_tag2b,  bag_trace.bag_tag3,  bag_trace.bag_tag1,  bag_trace.bag_tag2a  ,  bag_trace.pax_id, bag_trace.airport_code, bag_trace.record_id  from  bag_trace  ;

