-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabase.sql
More file actions
58 lines (49 loc) · 711 Bytes
/
Database.sql
File metadata and controls
58 lines (49 loc) · 711 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
CREATE SCHEMA survey;
use survey;
CREATE TABLE salary_survey(
country VARCHAR(120),
years_experience BIGINT,
employment_status VARCHAR(50),
job_title VARCHAR(50),
is_manager VARCHAR(5),
education_level VARCHAR(50)
);
-- import a csv file from excel into MySQL
select * from salary_survey;
SELECT
*
FROM
titles
LIMIT 10;
INSERT INTO employees
VALUES
(
999903,
'1977-09-14',
'Johnathan',
'Creek',
'M',
'1991-01-01'
);
COMMIT;
INSERT INTO titles
VALUES
(
999903,
'Senior Engineer',
'1997-10-01',
'9999-01-01'
);
INSERT INTO dept_emp
(
emp_no,
dept_no,
from_date,
to_date
) VALUES
(
999903,
'd005',
'1997-10-01',
'9999-01-01'
);