-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOVERTIMEtableConstruction.sql
62 lines (56 loc) · 1.48 KB
/
OVERTIMEtableConstruction.sql
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
59
60
61
62
DROP TABLE Overtime;
CREATE TABLE Overtime(
[User ID] INT,
[Day] NVARCHAR(40),
[Number of hours] INT,
[Start time] TIME,
dtStart_ddmmmyyyy as (REPLACE(CONVERT(VARCHAR(20), [Start time], 100), '', ''))
);
INSERT INTO Overtime ([Day], [Number of hours], [Start time])
VALUES
('Monday', '4', '14:00'),
('Monday', '4', '22:00'),
('Monday', '8', '9:00'),
('Monday', '4', '11:00'),
('Monday', '12', '8:00'),
('Monday', '4', '1:00'),
('Monday', '6', '3:00'),
('Monday', '4', '6:00'),
('Monday', '8', '10:00'),
('Tuesday', '4', '14:00'),
('Tuesday', '4', '22:00'),
('Tuesday', '8', '9:00'),
('Tuesday', '4', '11:00'),
('Tuesday', '12', '8:00'),
('Tuesday', '4', '1:00'),
('Tuesday', '6', '3:00'),
('Tuesday', '4', '6:00'),
('Tuesday', '8', '10:00'),
('Wednesday', '4', '14:00'),
('Wednesday', '4', '22:00'),
('Wednesday', '8', '9:00'),
('Wednesday', '4', '11:00'),
('Wednesday', '12', '8:00'),
('Wednesday', '4', '1:00'),
('Wednesday', '6', '3:00'),
('Wednesday', '4', '6:00'),
('Wednesday', '8', '10:00'),
('Thursday', '4', '14:00'),
('Thursday', '4', '22:00'),
('Thursday', '8', '9:00'),
('Thursday', '4', '11:00'),
('Thursday', '12', '8:00'),
('Thursday', '4', '1:00'),
('Thursday', '6', '3:00'),
('Thursday', '4', '6:00'),
('Thursday', '8', '10:00'),
('Friday', '4', '14:00'),
('Friday', '4', '22:00'),
('Friday', '8', '9:00'),
('Friday', '4', '11:00'),
('Friday', '12', '8:00'),
('Friday', '4', '1:00'),
('Friday', '6', '3:00'),
('Friday', '4', '6:00'),
('Friday', '8', '10:00');
SELECT * FROM Overtime;