-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDML Script
195 lines (136 loc) · 3.79 KB
/
DML Script
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
-- Create the table
CREATE TABLE scenario_1 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_1 (id) VALUES (1), (1), (1),(2),(NULL),(3),(3);
-- Create the table
CREATE TABLE scenario_2 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_2 (id) VALUES (1), (1),(NULL),(4),(4);
-- Create the table
CREATE TABLE scenario_3 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_3 (id) VALUES (1), (2), (3),(4),(5);
-- Create the table
CREATE TABLE scenario_4 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_4 (id) VALUES (5), (6),(7),(8),(9);
-- Create the table
CREATE TABLE scenario_5 (
id INT,
name VARCHAR(100)
);
-- Insert the data into the table
INSERT INTO scenario_5 (id,name) VALUES (1,'John'), (1,'Eric'),(2,'Fred'),(3,'Peter');
-- Create the table
CREATE TABLE scenario_6 (
id INT,
name VARCHAR(100)
);
-- Insert the data into the table
INSERT INTO scenario_6 (id,name) VALUES (1,'Colin'), (2,'Tony'),(3,'Brent'),(4,'Sagar');
-- Create the table
CREATE TABLE scenario_7 (
id INT,
name VARCHAR(100)
);
-- Insert the data into the table
INSERT INTO scenario_7 (id,name) VALUES (1,'Amit'), (2,'Aditya');
-- Create the table
CREATE TABLE scenario_8 (
id INT,
name VARCHAR(100)
);
-- Insert the data into the table
INSERT INTO scenario_8 (id,name) VALUES (1,'Sunil'), (2,'Suresh');
-- Create the table
CREATE TABLE scenario_9 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_9 (id) VALUES (1), (1), (1),(1),(1),(NULL),(NULL);
-- Create the table
CREATE TABLE scenario_10 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_10 (id) VALUES (1), (1),(1),(2),(NULL);
-- Create the table
CREATE TABLE scenario_11 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_11 (id) VALUES (0), (0),(NULL),(NULL),(0);
-- Create the table
CREATE TABLE scenario_12 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_12 (id) VALUES (0),(NULL),(0),(0);
-- Create the table
CREATE TABLE scenario_13 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_13 (id) VALUES (1),(NULL),(1),(1),(1),(2);
-- Create the table
CREATE TABLE scenario_14 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_14 (id) VALUES (1),(NULL),(1),(2);
-- Create the table
CREATE TABLE scenario_15 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_15 (id) VALUES (1),(1),(2);
-- Create the table
CREATE TABLE scenario_16 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_16 (id) VALUES (1),(2),(2),(2);
-- Create the table
CREATE TABLE scenario_17 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_17 (id) VALUES (1),(1),(1),(2),(3),(3),(3);
-- Create the table
CREATE TABLE scenario_18 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_18 (id) VALUES (1),(1),(2),(2),(4),(NULL);
-- Create the table
CREATE TABLE scenario_19 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_19 (id) VALUES (10),(10),(10),(20),(NULL);
-- Create the table
CREATE TABLE scenario_20 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_20 (id) VALUES (10),(10),(30);
-- Create the table
CREATE TABLE scenario_21 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_21 (id) VALUES (1), (1), (1),(2),(2),(NULL),(3),(4),(5),(NULL),(NULL);
-- Create the table
CREATE TABLE scenario_22 (
id INT
);
-- Insert the data into the table
INSERT INTO scenario_22 (id) VALUES (1),(1),(NULL),(2),(2),(2),(3),(3),(3),(NULL),(4);