/*****************************************************************************
*
* Filename         - $Workfile:   bag_trace_v3.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
*
*****************************************************************************/
/****************************************************************************
* @(#)$Workfile:   bag_trace_v3.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:   /pvcsarch/db_ora/db/source/live/views/bag_trace_v3.svl  $
* 
*    Rev 1.3   06 Jun 2000 10:04:38   tagtrak
*  
* 
*    Rev 1.1   02 Apr 1998 19:47:38   tagtrak
* OR:
* CR:
* REV:
* Initial Issue
* See label for concession
* 
*    Rev 1.0   22 Oct 1997 16:50:36   tagtrak
* OR:
* CR:
* REV:
* Initial check-in
*
****************************************************************************/

PROMPT Creating view   BAG_TRACE_V3   ;
CREATE OR REPLACE FORCE VIEW   BAG_TRACE_V3   ( pax_id, BAG_TRACE_DATE  , 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 
) as
  select  
          b.pax_id, 
          b.bag_trace_time,  
          to_char(b.bag_trace_time, 'HH24:MI'),  
          b.user_id,  
          b.location_code,  
          b.error_id,  
          b.bag_tag,  
          b.trace_action,  
          b.scanner_id,  
          b.flight_id_scan,  
          b.bag_tag2b,  
          b.bag_tag3,  
          b.bag_tag1,  
          b.bag_tag2a  
  from    tagtrak_users a, bag_trace b
  where   a.user_id  = b.user_id;









































  

