desktop_task_schedule/code/db/建表/电销坐席车非渗透统计表.sql

34 lines
1.3 KiB
SQL

-- Create table
create table
(
summary_date DATE default sysdate not null,
telsaler_name VARCHAR2(20) not null,
moto_premium NUMBER default 0 not null,
nomoto_premium NUMBER default 0 not null,
moto_premium_proportion NUMBER default 0 not null,
attaching_rate NUMBER default 0 not null,
attaching_rate_change NUMBER default 0 not null
)
tablespace DESKTOP_ARCHIEVEMENT
pctfree 10
initrans 1
maxtrans 255;
-- Add comments to the table
comment on table
is '用于存放BI导出每日电销坐席车险非车险保费和车非渗透率数据。';
-- Add comments to the columns
comment on column .summary_date
is '统计日期';
comment on column .telsaler_name
is '坐席名称';
comment on column .moto_premium
is '车险保费';
comment on column .nomoto_premium
is '非车险保费';
comment on column .moto_premium_proportion
is '车险保费占比';
comment on column .attaching_rate
is '渗透率';
comment on column .attaching_rate_change
is '渗透率环比上月';