开始开发车非渗透率BI表导入功能。
加入一些测试用数据文件。
This commit is contained in:
		
							
								
								
									
										33
									
								
								code/db/建表/电销坐席车非渗透统计表.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								code/db/建表/电销坐席车非渗透统计表.sql
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
-- 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 '渗透率环比上月';
 | 
			
		||||
		Reference in New Issue
	
	Block a user