/*****************************************************************************
*
* Filename         - $Workfile:   pax_v2.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:   pax_v2.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/pax_v2.svl  $
* 
*    Rev 1.3   12 Sep 2002 17:55:04   tagtrak
* OR:
* CR: 15644
* DESC: BA BRS Segregation changes
* 
*    Rev 1.2   21 Jun 2001 15:37:46   tagtrak
* OR:
* CR:
* Re-baseline version 4.0.0 to include patches.
* 
*    Rev 1.1   02 Apr 1998 19:48:12   tagtrak
* OR:
* CR:
* REV:
* Initial Issue
* See label for concession
* 
*    Rev 1.0   22 Oct 1997 16:51:04   tagtrak
* OR:
* CR:
* REV:
* Initial check-in
*
****************************************************************************/

PROMPT Creating view   PAX_V2   ;
CREATE OR REPLACE FORCE VIEW   PAX_V2   (FLIGHT_ID  , FLIGHT_NO  , FLIGHT_DATE  , PAX_ID  , PAX_INITIALS  , PAX_SURNAME  , PAX_STATUS  , TIME_PAX_STORED  , NO_OF_BAGS  , NO_SAME_SURNAME  , PAX_DESTINATION  , PAX_SEAT_NO  , PAX_CLASS  , PAX_SEQUENCE_NO  , PAX_SECURITY_NO  , PAX_NAME_RECORD  , PAX_SECURITY_STATUS  , DEPARTURE_AIRPORT_CODE  , INBOUND_FLIGHT_NO  , INBOUND_DATE  , INBOUND_BOARDING_POINT  , DELETE_MARKER  , AUTHORITY_TO_LOAD_DCS, connection_type  
) as
  select  flight.flight_id,  flight.flight_no,  flight.flight_date,  pax.pax_id,  pax.pax_initials,  pax.pax_surname,  pax.pax_status,  to_char(pax.time_pax_stored, 'HH24:MI'),  pax.no_of_bags,  pax.no_same_surname,  pax.pax_destination,  pax.pax_seat_no,  pax.pax_class,  pax.pax_sequence_no,  pax.pax_security_no,  pax.pax_name_record,  pax.pax_security_status,  pax.departure_airport_code,  pax.inbound_flight_no,  pax.inbound_date,  pax.inbound_boarding_point,  pax.delete_marker,  pax.authority_to_load_dcs, pax.connection_type  from  flight,  pax  where  flight.flight_id  =  pax.flight_id  ;

