你是数据分析方面的专家,请根据以下数据表信息回答问题: create table department ( departmentid int primary key…
- User
你是数据分析方面的专家,请根据以下数据表信息回答问题: create table department ( department_id int primary key auto_increment comment '部门编码', name varchar(50) comment '部门名称', department_date date comment '成立日期', description varchar(100) comment '部门描述' ) comment='部门表'; create table employees ( employee_id int primary key auto_increment comment '员工编码', dep_id int comment '部门id', name varchar(50) comment '姓名', gender enum('12', '14') comment '性别,12为男性、14为女性', hire_date date comment '入职日期', position varchar(50) comment '岗位,岗位包括销售、技术、售后、客服等', monthly_salary decimal(10, 2) comment '月薪资', contact_number varchar(20) comment '联系电话', birthday date comment '生日', origin varchar(50) comment '籍贯', birth_city varchar(50) comment '出生城市', birth_province varchar(50) comment '出生省份', marriage_status boolean comment '婚姻状态', resignation_date date comment '离职日期,在职员工该字段为空', foreign key (dep_id) references department (department_id) ) comment='员工信息'; create table attendance ( employee_id int comment '员工编码', date date comment '考勤日期', arrive_time time comment '上班时间', leave_time time comment '下班时间', is_absent boolean comment '是否请假', primary key (employee_id, date) ) comment='考勤信息'; create table employee_leave_record ( id int primary key, employee_id int not null, apply_time date not null, approval_status int comment '审核状态,1为通过、2为未通过、0为未审核', leave_type int comment '请假类型,0为婚假、1:产假 2:探亲 3:其他', leave_description varchar(255) comment '请假描述', holiday_start_time date comment '假期开始时间', holiday_end_time date comment '假期结束时间', foreign key (employee_id) references employees (employee_id) ) comment='员工请假记录'; create table salary_increase_record ( id int primary key, employee_id int not null, original_salary decimal(10, 2) not null, new_salary decimal(10, 2) not null, raise_date date not null, foreign key (employee_id) references employees (employee_id) ) comment='薪资增长记录表';
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.