数据库系统原理课程设计说明书――工资管理系统
门类型)。
? 工资(员工号,基本工资,实发工资,技能工资,奖金,福利,工龄工资,岗位工资,工资级别,岗位津贴,出勤天数,加班工时,加班天数,加班类别,加班工资,病假扣款,事假扣款,其他扣款,应发工资,三险一金,缴纳税)。
带波浪下划线的属性为各关系模式的主键,带下划线的属性为各关系模式的外键。
2.4 数据字典
1、表名:员工(员工号,姓名,性别,年龄,所在岗位,部门编号 ,工龄,工资等级,身份证号,民族,籍贯,婚否,职务,联系方式,出生年月,文化程度,职称,工种,职务等级,通讯地址),其含义:员工信息表,储存员工的基本信息。
其结构如表2.8所示:
11
数据库系统原理课程设计说明书――工资管理系统
表2.11 员工信息结构
字段名 number name sex age In post Department NO. seniority Pay grade I.D.card nation Native place marriage job contact birthday education Job title Type of job Job grade 字段类型 int char(10) char(10) int char(10) int int char(10) int char(10) char(10) char(10) char(10) char(10) date char(10) char(10) char(10) char(10) 是否为空 NOT NULL NULL NULL NULL NULL NOT NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 说明 员工号 姓名 性别 年龄 所在岗位 部门编号 工龄 工资等级 身份证号 民族 籍贯 婚否 职务 联系方式 出生年月 文化程度 职称 工种 职务等级 备注 主键 外键 12
数据库系统原理课程设计说明书――工资管理系统
Addr.
char(50) NULL 通讯地址 2、表名:部门(部门编号,部门人数,部门负责人,部门名称,部门位置,部门类型),其含义:储存部门的基本信息。
其结构如表2.12所示: 表2.12 部门信息结构 字段名 Department NO. population principal definition site type
3、表名:工资(员工号,基本工资,实发工资,技能工资,奖金,福利,工龄工资,岗位工资,工资级别,岗位津贴,出勤天数,加班工时,加班天数,加班类别,加班工资,病假扣款,事假扣款,其他扣款,应发工资,三险一金,缴纳税),其含义:工资的基本构成,存储工资的基本信息。
其结构如表2.13所示:
13
字段类型 int int char(10) char(10) char(10) char(10) 是否为空 NOT NULL NULL NULL NULL NULL NULL 说明 编号 人数 负责人 名称 位置 类型 备注 主键 数据库系统原理课程设计说明书――工资管理系统
表2.13 工资基本结构 字段名 number Base pay Salario pay Skill pay bonus weal Seniority pay Job pay Pay grade Job benefit Attendance days Added huors Added days Added type Added pay Sick leave pay deductions pay Others pay Wages be 字段类型 int int int int int int int int char(10) int int int int char(10) int int int int int 是否为空 NOT NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 说明 员工号 基本工资 实发工资 技能工资 奖金 福利 工龄工资 岗位工资 工资级别 岗位津贴 出勤天数 加班工时 加班天数 加班类别 加班工资 病假扣款 事假扣款 其他扣款 应发工资 备注 主键 14
数据库系统原理课程设计说明书――工资管理系统
insurance tax
int int NULL NULL 三险一金 缴纳税 三、数据库操作部分 3.1 数据库创建 1、 建员工表:
CREATE TABLE 员工表
(Number char(10) PRIMARY KEY, Name char(10), Sex int, Age int,
In post char(10),
Department NO. Int UNIQUE , Seniority int, Pay grade char(10), I.D.card int, Nation char(10), Marriage char(10), Job char(10), Contact char(10), Birthday date, Education char(10), Job title char(10), Type of job char(10), Job grade char(10), Addr. char(50));
15