View definition

 < Day Day Up > 



There are two views in the ORA_EMP database:

 CREATE VIEW employees_offices   (dept_code,    acct_id,    building,    office_id) AS   SELECT dept_code,          acct_id,          building,          offices.office_id   FROM offices,        employees   WHERE offices.office_id = employees.office_id; REATE VIEW office_summary   (building,    total_seats) AS    SELECT building,           sum(number_seats) total_seats    FROM offices    GROUP BY building; 



 < Day Day Up > 



Oracle to DB2 UDB Conversion Guide2003
Oracle to DB2 UDB Conversion Guide2003
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 132

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net