
/*****************************************************************************
*
* Filename         - $Workfile:   holding_pens_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       - 
*
* Design Spec
* Section          -
*
* Contents         - Live Schema View
*
* Language         - Oracle SQL*Plus script
*
* Classification   - Commercial In Confidence
*
*          (c) Ultra Electronics Limited, 2005
*
*****************************************************************************/

PROMPT Creating view     holding_pens_v1;

CREATE OR REPLACE FORCE VIEW   holding_pens_v1
              (
                     group_no,
                     no_of_bags,
                     site_id,
                     agent_code
              ) AS
              SELECT
                     bg.group_no,
                     bg.no_of_bags,
                     bg.site_id,
                     bg.agent_code
              FROM
                     bag_group bg
              WHERE
                     bg.holding_pen = 'Y';


