/*****************************************************************************
*
* Filename         - $Workfile:   ulds_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:   ulds_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/ulds_v1.sqv  $
* 
*    Rev 1.3   02 Apr 1998 19:11:00   tagtrak
* OR:
* CR:
* REV:
* Initial Issue
* See label for concession
* 
*    Rev 1.2   28 Oct 1997 14:38:56   tagtrak
* Added PVCS header
*
****************************************************************************/

PROMPT Creating view ulds_v1;

CREATE OR REPLACE FORCE VIEW ulds_v1 ( 
   uld_no
 , flight_id
 , airport_code
 , uld_hold_no
 , uld_no_of_bags
 , next_bag_seq_no
 , uld_loaded_status
 , uld_category
 , uld_type
 , pd_marker  
 , uld_id_code
) AS SELECT ulds.uld_no
     , ulds.flight_id
     , site_info.airport_code
     , ulds.uld_hold_no
     , ulds.uld_no_of_bags
     , ulds.next_bag_seq_no
     , ulds.uld_loaded_status
     , ulds.uld_category
     , ulds.uld_type
     , ulds.pd_marker  
     , ulds.uld_id_code
FROM   ulds
     , flight
     , site_info
WHERE  ulds.flight_id = flight.flight_id
  AND  flight.site_id = site_info.site_id;

