1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| INSERT INTO departments (dept_name, location) VALUES ('研发部', '3楼东区'), ('市场部', '2楼南侧'), ('财务部', '1楼西侧'), ('人力资源部', '1楼东侧'), ('运维部', '3楼西区');
INSERT INTO positions (position_name, base_salary) VALUES ('总监', 25000.00), ('经理', 18000.00), ('高级工程师', 15000.00), ('工程师', 12000.00), ('助理', 8000.00), ('实习生', 5000.00);
INSERT INTO employees (emp_name, gender, birth_date, hire_date, dept_id, position_id, email) VALUES ('张伟', 'M', '1980-05-15', '2010-06-01', 1, 1, 'zhangwei@company.com'), ('李娜', 'F', '1985-08-22', '2012-03-15', 2, 1, 'lina@company.com');
INSERT INTO employees (emp_name, gender, birth_date, hire_date, dept_id, position_id, manager_id, email) VALUES ('王强', 'M', '1990-11-10', '2015-07-01', 1, 2, 1, 'wangqiang@company.com'), ('赵敏', 'F', '1992-03-25', '2016-09-01', 1, 3, 3, 'zhaomin@company.com'), ('刘洋', 'M', '1995-07-18', '2018-04-01', 1, 4, 3, 'liuyang@company.com'), ('陈晨', 'F', '1993-12-05', '2017-11-01', 2, 2, 2, 'chenchen@company.com'), ('周杰', 'M', '1991-09-30', '2016-06-01', 3, 1, NULL, 'zhoujie@company.com'), ('吴芳', 'F', '1988-04-12', '2014-08-01', 4, 1, NULL, 'wufang@company.com');
INSERT INTO salaries (emp_id, salary_date, amount, bonus) VALUES (1, '2023-01-31', 25000.00, 5000.00), (1, '2023-02-28', 25000.00, 3000.00), (2, '2023-01-31', 25000.00, 4000.00), (2, '2023-02-28', 25000.00, 3500.00), (3, '2023-01-31', 18000.00, 2000.00), (3, '2023-02-28', 18000.00, 1500.00), (4, '2023-01-31', 15000.00, 1000.00), (4, '2023-02-28', 15000.00, 800.00), (5, '2023-01-31', 12000.00, 500.00), (5, '2023-02-28', 12000.00, 300.00);
INSERT INTO projects (project_name, start_date, end_date, budget, dept_id, leader_id, status) VALUES ('OA系统升级', '2023-01-01', '2023-06-30', 500000.00, 1, 3, 'In Progress'), ('市场推广活动', '2023-02-15', '2023-05-15', 300000.00, 2, 2, 'Planning'), ('财务软件迁移', '2023-03-01', '2023-09-30', 200000.00, 3, 7, 'Not Started');
|