Description
Properties
| Name | Value |
|---|---|
| File Collation | |
| File Group | |
| Filestream File Group | |
| Is Partitioned | False |
| Partitioned Column | |
| Partition Scheme | |
| File Groups | |
| Filestream Partition Scheme | |
| Filestream File Groups | |
| Heap | True |
| Full Text Catalog | |
| Full Text | |
| Compression | NONE |
| Row Count (~) | 642782 |
| Created | 1/3/2017 3:59:38 PM |
| Last Modified | 6/19/2018 3:50:09 PM |
Columns
12| Key | Name | Data Type | Length | Precision | Scale | Not Null | Identity | Rule | Default | Computed | Persisted | Description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id_relacion | int | 4 | 10 | 0 | True |
1 - 1 | False |
False |
||||
| cuita | varchar | 20 | 0 | 0 | True |
False |
False |
|||||
| cuitb | varchar | 20 | 0 | 0 | True |
False |
False |
|||||
| id_tipo_relacion | int | 4 | 10 | 0 | True |
False |
False |
|||||
| fecha_relacion | varchar | 50 | 0 | 0 | False |
False |
False |
|||||
| fecha_vencimiento | varchar | 50 | 0 | 0 | False |
False |
False |
|||||
| tipo_relacion | varchar | 200 | 0 | 0 | False |
False |
False |
|||||
| sub_tipo_relacion | varchar | 200 | 0 | 0 | False |
False |
False |
|||||
| origen_del_dato | varchar | 50 | 0 | 0 | False |
False |
False |
|||||
| created | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| modified | datetime | 8 | 23 | 3 | False |
False |
False |
|||||
| id_tipo_subrelacion | int | 4 | 10 | 0 | False |
False |
False |
Indexes
3| Key | Name | Columns | Unique | Type | Description |
|---|---|---|---|---|---|
| idc_relaciones_cuitb_origendeldato | cuitb, origen_del_dato | False |
|||
| idx_relaciones_cuita_origendeldato | cuita, origen_del_dato | False |
|||
| idxScreening11 | id_tipo_relacion | False |
SQL Script
Copy
CREATE TABLE dbo.relaciones (
id_relacion int IDENTITY,
cuita varchar(20) NOT NULL,
cuitb varchar(20) NOT NULL,
id_tipo_relacion int NOT NULL,
fecha_relacion varchar(50) NULL,
fecha_vencimiento varchar(50) NULL,
tipo_relacion varchar(200) NULL,
sub_tipo_relacion varchar(200) NULL,
origen_del_dato varchar(50) NULL,
created datetime NULL,
modified datetime NULL,
id_tipo_subrelacion int NULL
)
ON [PRIMARY]
GO
CREATE INDEX idc_relaciones_cuitb_origendeldato
ON dbo.relaciones (cuitb, origen_del_dato)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idx_relaciones_cuita_origendeldato
ON dbo.relaciones (cuita, origen_del_dato)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxScreening11
ON dbo.relaciones (id_tipo_relacion)
INCLUDE (cuita, cuitb, fecha_relacion, id_tipo_subrelacion)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
id_relacion int IDENTITY,
cuita varchar(20) NOT NULL,
cuitb varchar(20) NOT NULL,
id_tipo_relacion int NOT NULL,
fecha_relacion varchar(50) NULL,
fecha_vencimiento varchar(50) NULL,
tipo_relacion varchar(200) NULL,
sub_tipo_relacion varchar(200) NULL,
origen_del_dato varchar(50) NULL,
created datetime NULL,
modified datetime NULL,
id_tipo_subrelacion int NULL
)
ON [PRIMARY]
GO
CREATE INDEX idc_relaciones_cuitb_origendeldato
ON dbo.relaciones (cuitb, origen_del_dato)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idx_relaciones_cuita_origendeldato
ON dbo.relaciones (cuita, origen_del_dato)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idxScreening11
ON dbo.relaciones (id_tipo_relacion)
INCLUDE (cuita, cuitb, fecha_relacion, id_tipo_subrelacion)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
Depends On
1- Fidelitas
Used By
20- dbo.api_buscar_vinculaciones
- dbo.backend_busqueda_asociativa_para_ABM
- dbo.backend_busqueda_padron_asociativa
- dbo.backend_busqueda_padron_asociativa_2da_fase
- dbo.grafo_sociedades
- dbo.grafo_sociedades_claudio
- dbo.insertar_relaciones_afip
- dbo.LN_alertas_obtener_vinculaciones
- dbo.obtener_cheques_vinculaciones_todas
- dbo.obtener_vinculados_segun_BCRA
- dbo.screening_empleados_2018
- dbo.screening_empleados_2018_DEV
- dbo.screening_empleados_new
- dbo.screening_empleados_ok
- dbo.screening_proveedores_2018
- dbo.screening_proveedores_2018_new
- dbo.screening_proveedores_junio_2018
- dbo.screening_proveedores_new
- dbo.screening_proveedores_ok
- dbo.ws_estructura_societaria