-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathseed.sql
More file actions
36 lines (30 loc) · 729 Bytes
/
seed.sql
File metadata and controls
36 lines (30 loc) · 729 Bytes
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
USE employeeTracker_db;
INSERT INTO department
(name)
VALUES
('Sales'),
('Support'),
('Marketing'),
('Development');
INSERT INTO role
(title, salary, department_id)
VALUES
('Sales Manager', 60000, 1),
('Sales Associate', 40000, 1),
('Support Manager', 65000, 2),
('Support Associate', 6500, 2),
('Marketing Manager', 70000, 3),
('Marketing Associate', 50000, 3),
('Development Manager', 100000, 4),
('Development Associate', 80000, 4);
INSERT INTO employee
(first_name, last_name, role_id, manager_id)
VALUES
('Mike', 'Miller', 1, 2),
('John', 'Winters', 2, 1),
('Lisa', 'Wright', 3, 4),
('Steve', 'Streets', 4, 3),
('Chris', 'Maple', 5, 6),
('Heather', 'Williams', 6, 5),
('Julie', 'Adams', 7, 8),
('Dan', 'Klein', 8, 7);