/*****************************************************************************
*
* Filename         - $Workfile:   bag_v4.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_v4.sql  $  $Revision:   1.2  $
*
* 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_v4.svl  $
* 
*    Rev 1.2   21 Jun 2001 15:36:44   tagtrak
* OR:
* CR:
* Re-baseline version 4.0.0 to include patches.
* 
*    Rev 1.1   02 Apr 1998 19:47:44   tagtrak
* OR:
* CR:
* REV:
* Initial Issue
* See label for concession
* 
*    Rev 1.0   22 Oct 1997 16:50:40   tagtrak
* OR:
* CR:
* REV:
* Initial check-in
*
****************************************************************************/

PROMPT Creating view   BAG_V4   ;
CREATE OR REPLACE FORCE VIEW   BAG_V4   (FLIGHT_ID  , DEPARTURE_TIME  , PAX_ID  , BAG_TAG  , BAG_TAG1  , BAG_TAG2A  , BAG_TAG2B  , BAG_TAG3  , TIME_BAG_STORED  , LOADED_STATUS  
) as
  select  f.flight_id,  f.departure_time,  p.pax_id,  b.bag_tag,  b.bag_tag1,  b.bag_tag2a,  b.bag_tag2b,  b.bag_tag3,  b.time_bag_stored,  b.loaded_status  from  flight  f,  pax  p,  bag  b  where  f.flight_id  =  p.flight_id  and  p.pax_id  =  b.pax_id  ;

