Tables Previous topic Chapter index Next topic

RARO_RETENCIONES

 

Description

(There is no description for table RARO_RETENCIONES)

 

Fields

PK

FK

Field

Domain

Type

NN

Default

Description

 

TIPO

 

CHAR(10)

 

 

CODSOCIEDAD

 

CHAR(5)

 

 

CODTIPORETENCION

 

CHAR(5)

 

 

 

 

APLICA

 

CHAR(1)

'S'

 

 

 

PUBLICAR

 

CHAR(1)

'S'

 

 

 

ASUMIR

 

CHAR(1)

'N'

 

 

Triggers

(There are no triggers for table RARO_RETENCIONES)

 

Indices

Index

Fields

Active

Unique

Order

FK_RARO_RETENCIONES_1

CODSOCIEDAD

ASC

FK_RARO_RETENCIONES_2

CODTIPORETENCION

ASC

PK_RARO_RETENCIONES

TIPO, CODSOCIEDAD, CODTIPORETENCION

ASC

 

References

Table

Foreign Key

Fields

FK Field

Delete Rule

Update Rule

SOCIEDADES

FK_RARO_RETENCIONES_1

CODSOCIEDAD

CODIGO

NO ACTION

CASCADE

TIPORETENCIONES

FK_RARO_RETENCIONES_2

CODTIPORETENCION

CODIGO

NO ACTION

CASCADE

 

Referenced By

(There are no tables referenced by table RARO_RETENCIONES)

 

Definition

CREATE TABLE RARO_RETENCIONES (
    TIPO              CHAR(10) NOT NULL,
    CODSOCIEDAD       CHAR(5) NOT NULL,
    CODTIPORETENCION  CHAR(5) NOT NULL,
    APLICA            CHAR(1) DEFAULT 'S',
    PUBLICAR          CHAR(1) DEFAULT 'S',
    ASUMIR            CHAR(1) DEFAULT 'N'
);


ALTER TABLE RARO_RETENCIONES ADD CONSTRAINT PK_RARO_RETENCIONES PRIMARY KEY (TIPO, CODSOCIEDAD, CODTIPORETENCION);
ALTER TABLE RARO_RETENCIONES ADD CONSTRAINT FK_RARO_RETENCIONES_1 FOREIGN KEY (CODSOCIEDAD) REFERENCES SOCIEDADES (CODIGO) ON UPDATE CASCADE;
ALTER TABLE RARO_RETENCIONES ADD CONSTRAINT FK_RARO_RETENCIONES_2 FOREIGN KEY (CODTIPORETENCION) REFERENCES TIPORETENCIONES (CODIGO) ON UPDATE CASCADE;

 

     Previous topic Chapter index Next topic