Skip to content

Commit 1c7aff7

Browse files
author
openset
committed
Update: mysql_schemas
1 parent 0bfdecc commit 1c7aff7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

problems/department-highest-salary/mysql_schemas.sql

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ Create table If Not Exists Employee (Id int, Name varchar(255), Salary int, Depa
22
Create table If Not Exists Department (Id int, Name varchar(255));
33
Truncate table Employee;
44
insert into Employee (Id, Name, Salary, DepartmentId) values ('1', 'Joe', '70000', '1');
5-
insert into Employee (Id, Name, Salary, DepartmentId) values ('2', 'Henry', '80000', '2');
6-
insert into Employee (Id, Name, Salary, DepartmentId) values ('3', 'Sam', '60000', '2');
7-
insert into Employee (Id, Name, Salary, DepartmentId) values ('4', 'Max', '90000', '1');
5+
insert into Employee (Id, Name, Salary, DepartmentId) values ('2', 'Jim', '90000', '1');
6+
insert into Employee (Id, Name, Salary, DepartmentId) values ('3', 'Henry', '80000', '2');
7+
insert into Employee (Id, Name, Salary, DepartmentId) values ('4', 'Sam', '60000', '2');
8+
insert into Employee (Id, Name, Salary, DepartmentId) values ('5', 'Max', '90000', '1');
89
Truncate table Department;
910
insert into Department (Id, Name) values ('1', 'IT');
1011
insert into Department (Id, Name) values ('2', 'Sales');
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
Create table If Not Exists Employee (Id int, Name varchar(255), Salary int, DepartmentId int);
22
Create table If Not Exists Department (Id int, Name varchar(255));
33
Truncate table Employee;
4-
insert into Employee (Id, Name, Salary, DepartmentId) values ('1', 'Joe', '70000', '1');
4+
insert into Employee (Id, Name, Salary, DepartmentId) values ('1', 'Joe', '85000', '1');
55
insert into Employee (Id, Name, Salary, DepartmentId) values ('2', 'Henry', '80000', '2');
66
insert into Employee (Id, Name, Salary, DepartmentId) values ('3', 'Sam', '60000', '2');
77
insert into Employee (Id, Name, Salary, DepartmentId) values ('4', 'Max', '90000', '1');
8+
insert into Employee (Id, Name, Salary, DepartmentId) values ('5', 'Janet', '69000', '1');
9+
insert into Employee (Id, Name, Salary, DepartmentId) values ('6', 'Randy', '85000', '1');
10+
insert into Employee (Id, Name, Salary, DepartmentId) values ('7', 'Will', '70000', '1');
811
Truncate table Department;
912
insert into Department (Id, Name) values ('1', 'IT');
1013
insert into Department (Id, Name) values ('2', 'Sales');

0 commit comments

Comments
 (0)