/*****************************************************************************
*
* Filename         - $Workfile:   flight_status_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
*
*****************************************************************************/
/****************************************************************************
* @(#)$Workfile:   flight_status_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:   /pvcsarch/db_ora/db/source/live/views/flight_status_v1.svl  $
* 
*    Rev 1.3   21 Jun 2001 15:37:08   tagtrak
* OR:
* CR:
* Re-baseline version 4.0.0 to include patches.
* 
*    Rev 1.2   25 Sep 1998 10:07:36   tagtrak
* OR: 12484
* CR: 12484
* REV:
* Merged Vienna (0.3.1E) and Core Product (0.2.5E) -
* branch ATS revision moved to trunk.
* Andrew Walker
* 
*    Rev 1.1.2.0   18 Aug 1998 09:37:40   tagtrak
* OR: 12484
* CR: 12484
* REV:
* Merging Vienna (0.3.1E) and Core Product (0.2.5E).
* Andrew Walker
* 
*    Rev 1.1.1.0   04 Jun 1998 15:34:10   tagtrak
* OR:
* CR: 12098
* REV:
* Vienna Modifications
* Andrew Walker
* 
*    Rev 1.1   02 Apr 1998 19:47:54   tagtrak
* OR:
* CR:
* REV:
* Initial Issue
* See label for concession
* 
*    Rev 1.0   22 Oct 1997 16:50:48   tagtrak
* OR:
* CR:
* REV:
* Initial check-in
*
****************************************************************************/

PROMPT Creating view   FLIGHT_STATUS_V1   ;
CREATE OR REPLACE FORCE VIEW   FLIGHT_STATUS_V1   (FLIGHT_ID  , PAX_CHECKED  , PAX_BOARDED  , PAX_SHORT  , BAGS_CHECKED  , BAGS_LOADED  , BAGS_SHORT  , BAGS_REJECTED  
) as
  select  FLIGHT_STATUS.FLIGHT_ID,  FLIGHT_STATUS.PAX_CHECKED,  FLIGHT_STATUS.PAX_BOARDED,  FLIGHT_STATUS.PAX_SHORT,  FLIGHT_STATUS.BAGS_CHECKED,  FLIGHT_STATUS.BAGS_LOADED,  FLIGHT_STATUS.BAGS_SHORT,  FLIGHT_STATUS.BAGS_REJECTED  from  FLIGHT_STATUS, flight
where
	flight.flight_id = flight_status.flight_id and
	flight.op_flight_id is null;

