Table 1: The triggers when a new person is hired.
RDBMS STORED PROCEDURES
IBM DB2 CREATE TRIGGER NEWHIRED
AFTER INSERT ON EMPLOYEE
FOR EACH ROW MODE DB2SQL
UPDATE DEPT
SET EmpN = EmpN + 1
Oracle CREATE TRIGGER NEWHIRED
AFTER INSERT ON EMPLOYEE
BEGIN
UPDATE DEPT
SET EmpN = EmpN + 1
WHERE
EmlpoyeeID=:New.EmlpoyeeID
END;
Sybase CREATE TRIGGER ”NEWHIRED”
AFTER INSERT OF EmlpoyeeID
ON EMPLOYEE
REFERENCING OLD AS EO
NEW AS EN
FOR EACH ROW
BEGIN
UPDATE DEPT
SET
DEPT.EmpN = DEPT.EmpN + 1
WHERE
EMPLOYEE.EmlpoyeeID=EN
END
MySQL CREATE TRIGGER NEWHIRED
AFTER INSERT ON EMPLOYEE
FOR EACH ROW
UPDATE DEPT
SET EmpN = EmpN + 1
Postgres CREATE FUNCTION EmpA()
BEGIN
UPDATE FIRMA SET
EmpN = EmpN + 1;
END;
LANGUAGE ’plpgsql’ VOLATILE
CREATE TRIGGER NEWHIRED
AFTER INSERT ON EMPLOYEE
FOR EACH ROW
EXECUTE PROCEDURE EmpA();
4 CONCLUSIONS
In this paper we proposed data exchange metamodel
for copy schema mappings that describes the conver-
sion of Schema Model from one Platform-Specific
Model to other Platform-Specific Model according
to Meta-Object Facility-Query/Verify/Transform in
dynamical mode. A prototype application, named
ANCUTZA (ANalytiCal User Tool ZAmolxys)-
universal SQL and Procedural Language/SQL trans-
lator-for data exchange metamodel is in project phase
in idea to support a part of SQL flavors on different
RDMBS.
ACKNOWLEDGEMENTS
The authors would like to thank for the support to
PhD. Zsuzsanna-Katalin Szabo, Dean at Faculty of
Economics, Law, and Administrative Science from
Petru Maior Univerisity of Tg-Mures¸.
REFERENCES
Andreica, A., Stuparu, D., and Mantu, I. (2005). Symbolic
modelling of database representations. In 7
th
Inter-
national Symposium on Symbolic and Numeric Algo-
rithms for Scientific Computing. IEEE Computer So-
ciety Press, pp. 59-62.
Berri, C. and Vardi, M. (1984). A proof procedure for data
dependencies. In Journal of Assoc. Comput. Mach.
pp. 718-741.
Chomsky, N. (1956). Three models for the description of
language. In IRE Transactions on Information Theory.
pp. 113-123.
Fagin, R. (2007). Inverting schema mapping. In Transac-
tions on Databases Systems. ACM, 30, pp. 1-53.
Fagin, R., Kolaitis, P., Miller, R., and Popa, L. (2003). Data
exchange: semantics and query answering. In TEM-
PLATE’06, 1st International Conference on Template
Production. ELSEVIER, 336, 1, pp. 89-124.
Fagin, R., Kolaitis, P., and Popa, L. (2005a). Data exchange:
Getting to the core. In Transactions on Databases Sys-
tems. ACM, 30, pp. 994-1055.
Fagin, R., Kolaitis, P., and Popa, L. (2005b). Schema map-
pings: Second-order dependencies to the rescue. In
Transactions on Databases Systems. ACM, 30, pp.
994-1055.
Fagin, R. and Nash, A. (TheStructure of Inverses in Schema
Mappings). Inverting schema mapping. In Transac-
tions on Databases Systems. IBM Research Report,
RJ10425(A0712-004) 1-9.
Miller, R., Haas, L., and Hernandez, M. (2000). Schema
mapping as query discovery. In Proceedings of
the International Conference on Very large Data
Bases(VLDB). SPRINGER VERLAG, pp. 77-88.
Popa, L., Velegrakis, Y., Miller, R., Hernandez, M., and Fa-
gin, R. (2002). Translating web data. In Proceedings
of the International Conference on Very Large Data
Bases (VLDB). SPRINGER VERLAG, pp. 598-609.
Pranevicius, H. (2001). Translating web data. In The Use
of Aggregate and Z Formal Methods for Specification
and Analysis of Distributed Systems. Lecture Notes
in Computer Science (LNCS), SPRINGER VERLAG,
2151, pp. 253-266.
Shu, N., Housel, B., Taylor, R., Ghosh, S., and Lum, V.
(1977). Express: A data extraction, processing, and
restructuring system. In TEMPLATE’06, 1st Inter-
national Conference on Template Production. ACM
Transaction on Database System, pp. 134-174.
ICEIS 2008 - International Conference on Enterprise Information Systems
544