Tables Previous topic Chapter index Next topic

GRUPORETENCIONES

 

Description

(There is no description for table GRUPORETENCIONES)

 

Fields

PK

FK

Field

Domain

Type

NN

Default

Description

CODESQRETENCION

 

CHAR(5)

 

 

CODTIPORETENCION

 

CHAR(5)

 

 

 

Triggers

(There are no triggers for table GRUPORETENCIONES)

 

Indices

Index

Fields

Active

Unique

Order

FK_GRUPORETENCIONES_1

CODESQRETENCION

ASC

FK_GRUPORETENCIONES_2

CODTIPORETENCION

ASC

PK_GRUPORETENCIONES

CODESQRETENCION, CODTIPORETENCION

ASC

 

References

Table

Foreign Key

Fields

FK Field

Delete Rule

Update Rule

ESQRETENCIONES

FK_GRUPORETENCIONES_1

CODESQRETENCION

CODIGO

NO ACTION

CASCADE

TIPORETENCIONES

FK_GRUPORETENCIONES_2

CODTIPORETENCION

CODIGO

NO ACTION

CASCADE

 

Referenced By

(There are no tables referenced by table GRUPORETENCIONES)

 

Definition

CREATE TABLE GRUPORETENCIONES (
    CODESQRETENCION   CHAR(5) NOT NULL,
    CODTIPORETENCION  CHAR(5) NOT NULL
);


ALTER TABLE GRUPORETENCIONES ADD CONSTRAINT PK_GRUPORETENCIONES PRIMARY KEY (CODESQRETENCION, CODTIPORETENCION);
ALTER TABLE GRUPORETENCIONES ADD CONSTRAINT FK_GRUPORETENCIONES_1 FOREIGN KEY (CODESQRETENCION) REFERENCES ESQRETENCIONES (CODIGO) ON UPDATE CASCADE;
ALTER TABLE GRUPORETENCIONES ADD CONSTRAINT FK_GRUPORETENCIONES_2 FOREIGN KEY (CODTIPORETENCION) REFERENCES TIPORETENCIONES (CODIGO) ON UPDATE CASCADE;

 

     Previous topic Chapter index Next topic