| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Extending my question. Was: The relational model and relational algebra - why did SQL become the industry standard?
"Mikito Harakiri" <mikharakiri_at_ywho.com> wrote in message
news:rIu6a.8$i82.99_at_news.oracle.com...
Here is one I prepared eailer.
I wanted to get it to work in a data intergration senerio (aka a federated database). Unfortunalty, as things currently stand I can't define an INSTEAD OF trigger on a view that references a table in another database (a 'nickname' in DB" terminology).
Also FOR EACH STATEMENT is not available for INSTEAD OF triggers, so the
trigger is not at simple as it should be. This is a possability that is in
the air though
http://www7b.boulder.ibm.com/dmdd/library/techarticle/0210rielau/0210rielau.ht
ml#section6
CREATE TABLE phones (
id INTEGER NOT NULL,
phonetype VARCHAR(5) NOT NULL CHECK (phonetype IN ('VOICE', 'FAX')),
number VARCHAR(10) NOT NULL,
id INTEGER NOT NULL, voice VARCHAR(10) NOT NULL, fax VARCHAR(10) NOT NULL,
INSERT INTO phonesV
VALUES (1,'VOICE','019221122'), (1,'FAX','010313231')
@
SELECT * from contacts
@
ID VOICE FAX
----------- ---------- ----------
1 019221122 010313231
1 record(s) selected.
SELECT * from phones
@
ID PHONETYPE NUMBER
----------- --------- ----------
1 FAX 010313231
1 VOICE 019221122
2 record(s) selected.
Regards
Paul Vernon
Business Intelligence, IBM Global Services
Received on Tue Feb 25 2003 - 08:32:41 CST
![]() |
![]() |