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 (~) | 5303 |
| Created | 7/19/2018 11:05:19 AM |
| Last Modified | 7/23/2018 2:47:01 PM |
Columns
13| Key | Name | Data Type | Length | Precision | Scale | Not Null | Identity | Rule | Default | Computed | Persisted | Description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int | 4 | 10 | 0 | True |
1 - 1 | False |
False |
||||
| cuit | varchar | 20 | 0 | 0 | False |
False |
False |
|||||
| cod_clae | varchar | 10 | 0 | 0 | False |
False |
False |
|||||
| grupo | int | 4 | 10 | 0 | False |
False |
False |
|||||
| fecha_balance | date | 3 | 10 | 0 | False |
False |
False |
|||||
| ventas_netas | decimal | 13 | 20 | 2 | False |
False |
False |
|||||
| ventas_netas_actualizadas | decimal | 13 | 20 | 2 | False |
False |
False |
|||||
| cant_empleados | int | 4 | 10 | 0 | False |
False |
False |
|||||
| sueldos | decimal | 13 | 20 | 2 | False |
False |
False |
|||||
| empleados_periodo | int | 4 | 10 | 0 | False |
False |
False |
|||||
| cant_empleados_ultimo | int | 4 | 10 | 0 | False |
False |
False |
|||||
| sueldos_ultimo | decimal | 13 | 20 | 2 | False |
False |
False |
|||||
| empleados_periodo_ultimo | int | 4 | 10 | 0 | False |
False |
False |
Indexes
2| Key | Name | Columns | Unique | Type | Description |
|---|---|---|---|---|---|
| idx_balances_grupo_fecha | fecha_balance | False |
|||
| idx_balgrupo_id | id | False |
SQL Script
Copy
CREATE TABLE dbo.balances_por_grupo (
id int IDENTITY,
cuit varchar(20) NULL,
cod_clae varchar(10) NULL,
grupo int NULL,
fecha_balance date NULL,
ventas_netas decimal(20, 2) NULL,
ventas_netas_actualizadas decimal(20, 2) NULL,
cant_empleados int NULL,
sueldos decimal(20, 2) NULL,
empleados_periodo int NULL,
cant_empleados_ultimo int NULL,
sueldos_ultimo decimal(20, 2) NULL,
empleados_periodo_ultimo int NULL
)
ON [PRIMARY]
GO
CREATE INDEX idx_balances_grupo_fecha
ON dbo.balances_por_grupo (fecha_balance)
INCLUDE (id, cuit)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idx_balgrupo_id
ON dbo.balances_por_grupo (id)
WITH (FILLFACTOR = 20)
ON [PRIMARY]
GO
id int IDENTITY,
cuit varchar(20) NULL,
cod_clae varchar(10) NULL,
grupo int NULL,
fecha_balance date NULL,
ventas_netas decimal(20, 2) NULL,
ventas_netas_actualizadas decimal(20, 2) NULL,
cant_empleados int NULL,
sueldos decimal(20, 2) NULL,
empleados_periodo int NULL,
cant_empleados_ultimo int NULL,
sueldos_ultimo decimal(20, 2) NULL,
empleados_periodo_ultimo int NULL
)
ON [PRIMARY]
GO
CREATE INDEX idx_balances_grupo_fecha
ON dbo.balances_por_grupo (fecha_balance)
INCLUDE (id, cuit)
WITH (FILLFACTOR = 80)
ON [PRIMARY]
GO
CREATE INDEX idx_balgrupo_id
ON dbo.balances_por_grupo (id)
WITH (FILLFACTOR = 20)
ON [PRIMARY]
GO
Depends On
1- Fidelitas