1
|
select stat_date,asp_id,c_id,item_id,p_id,count(stat_log_id) as cnt, sum(pv_count_pc)+sum(action_click_count_pc)+sum(click_count_pc)+sum(click_unique_count_pc)+sum(action_count_pc)+sum(admit_count_pc)+sum(cancel_count_pc)+sum(click_cost_pc)+sum(click_cost_cl_pc)+sum(action_cost_pc)+sum(action_cost_cl_pc)+sum(resign_count_pc)+sum(this_month_resign_count_pc) as pc, sum(pv_count_d)+sum(action_click_count_d)+sum(click_count_d)+sum(click_unique_count_d)+sum(action_count_d)+sum(admit_count_d)+sum(cancel_count_d)+sum(click_cost_d)+sum(click_cost_cl_d)+sum(action_cost_d)+sum(action_cost_cl_d)+sum(resign_count_d)+sum(this_month_resign_count_d) as d, sum(pv_count_v)+sum(action_click_count_v)+sum(click_count_v)+sum(click_unique_count_v)+sum(action_count_v)+sum(admit_count_v)+sum(cancel_count_v)+sum(click_cost_v)+sum(click_cost_cl_v)+sum(action_cost_v)+sum(action_cost_cl_v)+sum(resign_count_v)+sum(this_month_resign_count_v) as v, sum(pv_count_e)+sum(action_click_count_e)+sum(click_count_e)+sum(click_unique_count_e)+sum(action_count_e)+sum(admit_count_e)+sum(cancel_count_e)+sum(click_cost_e)+sum(click_cost_cl_e)+sum(action_cost_e)+sum(action_cost_cl_e)+sum(resign_count_e)+sum(this_month_resign_count_e) as e, sum(pv_count_i)+sum(action_click_count_i)+sum(click_count_i)+sum(click_unique_count_i)+sum(action_count_i)+sum(admit_count_i)+sum(cancel_count_i)+sum(click_cost_i)+sum(click_cost_cl_i)+sum(action_cost_i)+sum(action_cost_cl_i)+sum(resign_count_i)+sum(this_month_resign_count_i) as i, sum(pv_count_a)+sum(action_click_count_a)+sum(click_count_a)+sum(click_unique_count_a)+sum(action_count_a)+sum(admit_count_a)+sum(cancel_count_a)+sum(click_cost_a)+sum(click_cost_cl_a)+sum(action_cost_a)+sum(action_cost_cl_a)+sum(resign_count_a)+sum(this_month_resign_count_a) as a from stat_log_asp_201310 where stat_date = '2013-10-01' group by stat_date,asp_id,c_id,item_id,p_id order by cnt desc ,stat_date,asp_id,c_id,item_id,p_id
|
2
|
|
3
|
select * from stat_log_asp_201310 where stat_date = '2013-10-11' and asp_id = 11 and c_id = 129 and item_id = 0 and p_id = 1
|
4
|
|
5
|
delete from stat_log_asp_201310 where stat_log_id = 5934
|
6
|
update stat_log_asp_201310 set
|
7
|
action_count_d = 3,
|
8
|
action_count_a = 2,
|
9
|
action_count_i = 2
|
10
|
where stat_log_id = 5933
|
11
|
|
12
|
select * from stat_log_asp_201310 where stat_date = '2013-10-07' and asp_id = 11 and c_id = 129 and item_id = 0 and p_id = 1
|
13
|
|
14
|
delete from stat_log_asp_201310 where stat_log_id = 3767
|
15
|
update stat_log_asp_201310 set
|
16
|
action_count_v = action_count_v + 1
|
17
|
where stat_log_id = 3766
|
18
|
|
19
|
select * from stat_log_asp_201310 where stat_date = '2013-10-02' and asp_id = 11 and c_id = 627 and item_id = 0 and p_id = 0
|
20
|
|
21
|
delete from stat_log_asp_201310 where stat_log_id = 1027
|
22
|
update stat_log_asp_201310 set
|
23
|
action_click_count_d = 3,
|
24
|
click_count_d = 3
|
25
|
where stat_log_id = 1026
|
26
|
|
27
|
select * from stat_log_asp_201310 where stat_date = '2013-10-17' and asp_id = 39 and c_id = 129 and item_id = 159 and p_id = 0
|
28
|
delete from stat_log_asp_201310 where stat_log_id = 8620
|
29
|
|
30
|
select stat_date,m_id,c_id,item_id,p_id,count(stat_log_id) as cnt, sum(pv_count_pc)+sum(action_click_count_pc)+sum(click_count_pc)+sum(click_unique_count_pc)+sum(action_count_pc)+sum(admit_count_pc)+sum(cancel_count_pc)+sum(click_cost_pc)+sum(click_cost_cl_pc)+sum(action_cost_pc)+sum(action_cost_cl_pc)+sum(resign_count_pc)+sum(this_month_resign_count_pc) as pc, sum(pv_count_d)+sum(action_click_count_d)+sum(click_count_d)+sum(click_unique_count_d)+sum(action_count_d)+sum(admit_count_d)+sum(cancel_count_d)+sum(click_cost_d)+sum(click_cost_cl_d)+sum(action_cost_d)+sum(action_cost_cl_d)+sum(resign_count_d)+sum(this_month_resign_count_d) as d, sum(pv_count_v)+sum(action_click_count_v)+sum(click_count_v)+sum(click_unique_count_v)+sum(action_count_v)+sum(admit_count_v)+sum(cancel_count_v)+sum(click_cost_v)+sum(click_cost_cl_v)+sum(action_cost_v)+sum(action_cost_cl_v)+sum(resign_count_v)+sum(this_month_resign_count_v) as v, sum(pv_count_e)+sum(action_click_count_e)+sum(click_count_e)+sum(click_unique_count_e)+sum(action_count_e)+sum(admit_count_e)+sum(cancel_count_e)+sum(click_cost_e)+sum(click_cost_cl_e)+sum(action_cost_e)+sum(action_cost_cl_e)+sum(resign_count_e)+sum(this_month_resign_count_e) as e, sum(pv_count_i)+sum(action_click_count_i)+sum(click_count_i)+sum(click_unique_count_i)+sum(action_count_i)+sum(admit_count_i)+sum(cancel_count_i)+sum(click_cost_i)+sum(click_cost_cl_i)+sum(action_cost_i)+sum(action_cost_cl_i)+sum(resign_count_i)+sum(this_month_resign_count_i) as i, sum(pv_count_a)+sum(action_click_count_a)+sum(click_count_a)+sum(click_unique_count_a)+sum(action_count_a)+sum(admit_count_a)+sum(cancel_count_a)+sum(click_cost_a)+sum(click_cost_cl_a)+sum(action_cost_a)+sum(action_cost_cl_a)+sum(resign_count_a)+sum(this_month_resign_count_a) as a from stat_log_201310 where stat_date = '2013-10-01' group by stat_date,m_id,c_id,item_id,p_id order by cnt desc ,stat_date,m_id,c_id,item_id,p_id
|
31
|
|
32
|
select * from stat_log_201310 where stat_date = '2013-10-03' and m_id = 207 and c_id = 1003 and item_id = 0 and p_id = 1
|
33
|
|
34
|
delete from stat_log_201310 where stat_log_id = 1386
|
35
|
update stat_log_201310 set
|
36
|
action_click_count_a = 2,
|
37
|
action_count_a = 2,
|
38
|
action_item_count_a = 2,
|
39
|
admit_count_a = 2,
|
40
|
admit_item_count_a = 2,
|
41
|
action_cost_a = 2000,
|
42
|
action_cost_cl_a = 3000
|
43
|
where stat_log_id = 1385
|
44
|
|
45
|
select * from stat_log_201310 where stat_date = '2013-10-06' and m_id = 202 and c_id = 846 and item_id = 0 and p_id = 0
|
46
|
|
47
|
delete from stat_log_201310 where stat_log_id = 3646
|
48
|
update stat_log_201310 set
|
49
|
action_click_count_a = 2,
|
50
|
click_count_a = 2
|
51
|
where stat_log_id = 3645
|
52
|
|
53
|
select * from stat_log_201310 where stat_date = '2013-10-07' and m_id = 204 and c_id = 361 and item_id = 0 and p_id = 1
|
54
|
|
55
|
delete from stat_log_201310 where stat_log_id = 3731
|
56
|
update stat_log_201310 set
|
57
|
action_click_count_a = 7,
|
58
|
action_count_a = 7,
|
59
|
action_item_count_a = 7,
|
60
|
admit_count_a = 7,
|
61
|
admit_item_count_a = 7,
|
62
|
action_cost_a = 1000 * 7,
|
63
|
action_cost_cl_a = 1400 * 7
|
64
|
where stat_log_id = 3730
|
65
|
|
66
|
select * from stat_log_201310 where stat_date = '2013-10-07' and m_id = 204 and c_id = 514 and item_id = 0 and p_id = 1
|
67
|
delete from stat_log_201310 where stat_log_id = 3757
|
68
|
update stat_log_201310 set
|
69
|
action_click_count_a = 7,
|
70
|
action_count_a = 7,
|
71
|
action_item_count_a = 7,
|
72
|
admit_count_a = 7,
|
73
|
admit_item_count_a = 7,
|
74
|
action_cost_a = 1080 * 7,
|
75
|
action_cost_cl_a = 1200 * 7
|
76
|
where stat_log_id = 3756
|
77
|
|
78
|
select * from stat_log_201310 where stat_date = '2013-10-07' and m_id = 204 and c_id = 516 and item_id = 0 and p_id = 0
|
79
|
delete from stat_log_201310 where stat_log_id = 3729
|
80
|
update stat_log_201310 set
|
81
|
action_click_count_a = 9,
|
82
|
click_count_a = 9
|
83
|
where stat_log_id = 3728
|
84
|
|
85
|
select * from stat_log_201310 where stat_date = '2013-10-07' and m_id = 204 and c_id = 517 and item_id = 0 and p_id = 0
|
86
|
delete from stat_log_201310 where stat_log_id = 3740
|
87
|
update stat_log_201310 set
|
88
|
action_click_count_a = 4,
|
89
|
click_count_a = 4
|
90
|
where stat_log_id = 3738
|
91
|
|
92
|
select * from stat_log_201310 where stat_date = '2013-10-07' and m_id = 204 and c_id = 642 and item_id = 0 and p_id = 0
|
93
|
delete from stat_log_201310 where stat_log_id = 3733
|
94
|
update stat_log_201310 set
|
95
|
action_click_count_a = 7,
|
96
|
click_count_a = 7
|
97
|
where stat_log_id = 3732
|
98
|
|
99
|
select * from stat_log_201310 where stat_date = '2013-10-07' and m_id = 204 and c_id = 706 and item_id = 0 and p_id = 1
|
100
|
delete from stat_log_201310 where stat_log_id = 3759
|
101
|
update stat_log_201310 set
|
102
|
action_click_count_a = 7,
|
103
|
action_count_a = 7,
|
104
|
action_item_count_a = 7,
|
105
|
admit_count_a = 7,
|
106
|
admit_item_count_a = 7,
|
107
|
action_cost_a = 1080 * 7,
|
108
|
action_cost_cl_a = 1200 * 7
|
109
|
where stat_log_id = 3758
|
110
|
|
111
|
select * from stat_log_201310 where stat_date = '2013-10-07' and m_id = 204 and c_id = 779 and item_id = 0 and p_id = 1
|
112
|
delete from stat_log_201310 where stat_log_id = 3755
|
113
|
update stat_log_201310 set
|
114
|
action_click_count_a = 7,
|
115
|
action_count_a = 7,
|
116
|
action_item_count_a = 7,
|
117
|
admit_count_a = 7,
|
118
|
admit_item_count_a = 7,
|
119
|
action_cost_a = 1050 * 7,
|
120
|
action_cost_cl_a = 1200 * 7
|
121
|
where stat_log_id = 3754
|
122
|
|
123
|
select * from stat_log_201310 where stat_date = '2013-10-07' and m_id = 204 and c_id = 849 and item_id = 0 and p_id = 0
|
124
|
delete from stat_log_201310 where stat_log_id = 3742
|
125
|
update stat_log_201310 set
|
126
|
action_click_count_a = 7,
|
127
|
click_count_a = 7
|
128
|
where stat_log_id = 3741
|
129
|
|
130
|
select * from stat_log_201310 where stat_date = '2013-10-07' and m_id = 285 and c_id = 779 and item_id = '' and p_id = ''
|
131
|
delete from stat_log_201310 where stat_log_id = 4056
|
132
|
update stat_log_201310 set
|
133
|
resign_count_pc = 6
|
134
|
where stat_log_id = 4055
|
135
|
|
136
|
select * from stat_log_201310 where stat_date = '2013-10-08' and m_id = 204 and c_id = 642 and item_id = 0 and p_id = 0
|
137
|
delete from stat_log_201310 where stat_log_id = 4343
|
138
|
update stat_log_201310 set
|
139
|
action_click_count_a = 2,
|
140
|
click_count_a = 2
|
141
|
where stat_log_id = 4342
|
142
|
|
143
|
select * from stat_log_201310 where stat_date = '2013-10-09' and m_id = 589 and c_id = 1033 and item_id = 0 and p_id = 0
|
144
|
delete from stat_log_201310 where stat_log_id = 4931
|
145
|
update stat_log_201310 set
|
146
|
action_click_count_a = 8,
|
147
|
click_count_a = 8,
|
148
|
action_click_count_i = 27,
|
149
|
click_count_i = 27
|
150
|
where stat_log_id = 4930
|
151
|
|
152
|
select * from stat_log_201310 where stat_date = '2013-10-10' and m_id = 203 and c_id = 514 and item_id = 0 and p_id = 0
|
153
|
delete from stat_log_201310 where stat_log_id = 5526
|
154
|
update stat_log_201310 set
|
155
|
action_click_count_a = 2,
|
156
|
click_count_a = 2
|
157
|
where stat_log_id = 5525
|
158
|
|
159
|
select * from stat_log_201310 where stat_date = '2013-10-10' and m_id = 203 and c_id = 706 and item_id = 0 and p_id = 0
|
160
|
delete from stat_log_201310 where stat_log_id = 5529
|
161
|
update stat_log_201310 set
|
162
|
action_click_count_a = 3,
|
163
|
click_count_a = 3
|
164
|
where stat_log_id = 5528
|
165
|
|
166
|
select * from stat_log_201310 where stat_date = '2013-10-10' and m_id = 203 and c_id = 779 and item_id = 0 and p_id = 0
|
167
|
delete from stat_log_201310 where stat_log_id = 5524
|
168
|
update stat_log_201310 set
|
169
|
action_click_count_a = 2,
|
170
|
click_count_a = 2
|
171
|
where stat_log_id = 5523
|
172
|
|
173
|
select * from stat_log_201310 where stat_date = '2013-10-10' and m_id = 285 and c_id = 779 and item_id = 0 and p_id = 0
|
174
|
delete from stat_log_201310 where stat_log_id = 5341
|
175
|
update stat_log_201310 set
|
176
|
action_click_count_a = 5,
|
177
|
click_count_a = 5
|
178
|
where stat_log_id = 5339
|
179
|
|
180
|
select * from stat_log_201310 where stat_date = '2013-10-11' and m_id = 199 and c_id = 517 and item_id = '' and p_id = ''
|
181
|
delete from stat_log_201310 where stat_log_id = 5854
|
182
|
update stat_log_201310 set
|
183
|
resign_count_pc = 2
|
184
|
where stat_log_id = 5853
|
185
|
|
186
|
select * from stat_log_201310 where stat_date = '2013-10-11' and m_id = 199 and c_id = 657
|
187
|
delete from stat_log_201310 where stat_log_id = 6222
|
188
|
update stat_log_201310 set
|
189
|
resign_count_pc = 2
|
190
|
where stat_log_id = 6221
|
191
|
|
192
|
select * from stat_log_201310 where stat_date = '2013-10-11' and m_id = 201 and c_id = 849 and item_id = 0 and p_id = 0
|
193
|
delete from stat_log_201310 where stat_log_id = 6212
|
194
|
update stat_log_201310 set
|
195
|
action_click_count_a = 2,
|
196
|
click_count_a = 2
|
197
|
where stat_log_id = 6211
|
198
|
|
199
|
select * from stat_log_201310 where stat_date = '2013-10-11' and m_id = 206 and c_id = 516 and item_id = '' and p_id = ''
|
200
|
delete from stat_log_201310 where stat_log_id = 5773
|
201
|
|
202
|
select * from stat_log_201310 where stat_date = '2013-10-12' and m_id = 199 and c_id = 948 and item_id = 0 and p_id = 0
|
203
|
delete from stat_log_201310 where stat_log_id = 6867
|
204
|
update stat_log_201310 set
|
205
|
action_click_count_a = 2,
|
206
|
click_count_a = 2
|
207
|
where stat_log_id = 6866
|
208
|
|
209
|
select * from stat_log_201310 where stat_date = '2013-10-12' and m_id = 589 and c_id = 779 and item_id = 0 and p_id = 0
|
210
|
delete from stat_log_201310 where stat_log_id = 6703
|
211
|
update stat_log_201310 set
|
212
|
action_click_count_a = 4,
|
213
|
click_count_a = 4,
|
214
|
action_click_count_i = 8,
|
215
|
click_count_i = 8
|
216
|
where stat_log_id = 6702
|
217
|
|
218
|
select * from stat_log_201310 where stat_date = '2013-10-13' and m_id = 589 and c_id = 948 and item_id = 0 and p_id = 0
|
219
|
delete from stat_log_201310 where stat_log_id = 7184
|
220
|
update stat_log_201310 set
|
221
|
action_click_count_a = 143,
|
222
|
click_count_a = 143,
|
223
|
action_click_count_i = 8,
|
224
|
click_count_i = 8
|
225
|
where stat_log_id = 7183
|
226
|
|
227
|
select * from stat_log_201310 where stat_date = '2013-10-14' and m_id = 207 and c_id = 1010 and item_id = 0 and p_id = 0
|
228
|
delete from stat_log_201310 where stat_log_id = 8106
|
229
|
update stat_log_201310 set
|
230
|
action_click_count_a = 5,
|
231
|
click_count_a = 5
|
232
|
where stat_log_id = 8105
|
233
|
|
234
|
select * from stat_log_201310 where stat_date = '2013-10-15' and m_id = 204 and c_id = 361 and item_id = 0 and p_id = 0
|
235
|
delete from stat_log_201310 where stat_log_id = 8640
|
236
|
update stat_log_201310 set
|
237
|
action_click_count_a = 4,
|
238
|
click_count_a = 4
|
239
|
where stat_log_id = 8639
|
240
|
|
241
|
select * from stat_log_201310 where stat_date = '2013-10-15' and m_id = 204 and c_id = 1024 and item_id = 0 and p_id = 1
|
242
|
delete from stat_log_201310 where stat_log_id = 8628
|
243
|
update stat_log_201310 set
|
244
|
action_click_count_a = 3,
|
245
|
action_count_a = 3,
|
246
|
action_item_count_a = 3,
|
247
|
admit_count_a = 3,
|
248
|
admit_item_count_a = 3,
|
249
|
action_cost_a = 1000 * 3,
|
250
|
action_cost_cl_a = 1500 * 3
|
251
|
where stat_log_id = 8627
|
252
|
|
253
|
select * from stat_log_201310 where stat_date = '2013-10-15' and m_id = 207 and c_id = 929 and item_id = 0 and p_id = 1
|
254
|
delete from stat_log_201310 where stat_log_id = 8603
|
255
|
update stat_log_201310 set
|
256
|
action_click_count_a = 3,
|
257
|
action_count_a = 2,
|
258
|
action_item_count_a = 2,
|
259
|
admit_count_a = 2,
|
260
|
admit_item_count_a = 2,
|
261
|
action_cost_a = 900 * 2,
|
262
|
action_cost_cl_a = 1200 * 2,
|
263
|
action_click_count_i = 2,
|
264
|
action_count_i = 2,
|
265
|
action_item_count_i = 2,
|
266
|
admit_count_i = 2,
|
267
|
admit_item_count_i = 2,
|
268
|
action_cost_i = 900 * 2,
|
269
|
action_cost_cl_i = 1200 * 2
|
270
|
where stat_log_id = 8602
|
271
|
|
272
|
select * from stat_log_201310 where stat_date = '2013-10-15' and m_id = 207 and c_id = 1018 and item_id = 0 and p_id = 1
|
273
|
delete from stat_log_201310 where stat_log_id = 8605
|
274
|
update stat_log_201310 set
|
275
|
action_click_count_i = 2,
|
276
|
action_count_i = 2,
|
277
|
action_item_count_i = 2,
|
278
|
admit_count_i = 2,
|
279
|
admit_item_count_i = 2,
|
280
|
action_cost_i = 900 * 2,
|
281
|
action_cost_cl_i = 1200 * 2
|
282
|
where stat_log_id = 8604
|
283
|
|
284
|
select * from stat_log_201310 where stat_date = '2013-10-15' and m_id = 207 and c_id = 1019 and item_id = 0 and p_id = 0
|
285
|
delete from stat_log_201310 where stat_log_id = 8956
|
286
|
update stat_log_201310 set
|
287
|
action_click_count_a = 5,
|
288
|
click_count_a = 5
|
289
|
where stat_log_id = 8955
|
290
|
|
291
|
select stat_date,listing_id,c_id,keyword_id,p_id,count(stat_log_id) as cnt, sum(pv_count_pc)+sum(action_click_count_pc)+sum(click_count_pc)+sum(click_unique_count_pc)+sum(action_count_pc)+sum(admit_count_pc)+sum(cancel_count_pc)+sum(click_cost_pc)+sum(click_cost_cl_pc)+sum(action_cost_pc)+sum(action_cost_cl_pc)+sum(resign_count_pc)+sum(this_month_resign_count_pc) as pc, sum(pv_count_d)+sum(action_click_count_d)+sum(click_count_d)+sum(click_unique_count_d)+sum(action_count_d)+sum(admit_count_d)+sum(cancel_count_d)+sum(click_cost_d)+sum(click_cost_cl_d)+sum(action_cost_d)+sum(action_cost_cl_d)+sum(resign_count_d)+sum(this_month_resign_count_d) as d, sum(pv_count_v)+sum(action_click_count_v)+sum(click_count_v)+sum(click_unique_count_v)+sum(action_count_v)+sum(admit_count_v)+sum(cancel_count_v)+sum(click_cost_v)+sum(click_cost_cl_v)+sum(action_cost_v)+sum(action_cost_cl_v)+sum(resign_count_v)+sum(this_month_resign_count_v) as v, sum(pv_count_e)+sum(action_click_count_e)+sum(click_count_e)+sum(click_unique_count_e)+sum(action_count_e)+sum(admit_count_e)+sum(cancel_count_e)+sum(click_cost_e)+sum(click_cost_cl_e)+sum(action_cost_e)+sum(action_cost_cl_e)+sum(resign_count_e)+sum(this_month_resign_count_e) as e, sum(pv_count_i)+sum(action_click_count_i)+sum(click_count_i)+sum(click_unique_count_i)+sum(action_count_i)+sum(admit_count_i)+sum(cancel_count_i)+sum(click_cost_i)+sum(click_cost_cl_i)+sum(action_cost_i)+sum(action_cost_cl_i)+sum(resign_count_i)+sum(this_month_resign_count_i) as i, sum(pv_count_a)+sum(action_click_count_a)+sum(click_count_a)+sum(click_unique_count_a)+sum(action_count_a)+sum(admit_count_a)+sum(cancel_count_a)+sum(click_cost_a)+sum(click_cost_cl_a)+sum(action_cost_a)+sum(action_cost_cl_a)+sum(resign_count_a)+sum(this_month_resign_count_a) as a from stat_log_listing_201310 where stat_date = '2013-10-01' group by stat_date,listing_id,c_id,keyword_id,p_id order by cnt desc ,stat_date,listing_id,c_id,keyword_id,p_id
|
292
|
|
293
|
select stat_date,m_id,count(stat_log_id) as cnt, sum(pv_count_pc)+sum(action_click_count_pc)+sum(click_count_pc)+sum(click_unique_count_pc)+sum(action_count_pc)+sum(admit_count_pc)+sum(cancel_count_pc)+sum(click_cost_pc)+sum(click_cost_cl_pc)+sum(action_cost_pc)+sum(action_cost_cl_pc) as pc, sum(pv_count_d)+sum(action_click_count_d)+sum(click_count_d)+sum(click_unique_count_d)+sum(action_count_d)+sum(admit_count_d)+sum(cancel_count_d)+sum(click_cost_d)+sum(click_cost_cl_d)+sum(action_cost_d)+sum(action_cost_cl_d) as d, sum(pv_count_v)+sum(action_click_count_v)+sum(click_count_v)+sum(click_unique_count_v)+sum(action_count_v)+sum(admit_count_v)+sum(cancel_count_v)+sum(click_cost_v)+sum(click_cost_cl_v)+sum(action_cost_v)+sum(action_cost_cl_v) as v, sum(pv_count_e)+sum(action_click_count_e)+sum(click_count_e)+sum(click_unique_count_e)+sum(action_count_e)+sum(admit_count_e)+sum(cancel_count_e)+sum(click_cost_e)+sum(click_cost_cl_e)+sum(action_cost_e)+sum(action_cost_cl_e) as e from stat_log_media_201310 where stat_date = '2013-10-01' group by stat_date,m_id order by cnt desc ,stat_date,m_id
|
294
|
|
295
|
select * from stat_log_media_201310 where stat_date = '2013-10-06' and m_id = 204
|
296
|
delete from stat_log_media_201310 where stat_log_id = 217
|
297
|
update stat_log_media_201310 set
|
298
|
action_click_count_pc = 86,
|
299
|
click_count_pc = 86
|
300
|
where stat_log_id = 216
|
301
|
|
302
|
select stat_date,c_id,count(stat_log_id) as cnt, sum(pv_count_pc)+sum(action_click_count_pc)+sum(click_count_pc)+sum(click_unique_count_pc)+sum(action_count_pc)+sum(admit_count_pc)+sum(cancel_count_pc)+sum(click_cost_pc)+sum(click_cost_cl_pc)+sum(action_cost_pc)+sum(action_cost_cl_pc) as pc, sum(pv_count_d)+sum(action_click_count_d)+sum(click_count_d)+sum(click_unique_count_d)+sum(action_count_d)+sum(admit_count_d)+sum(cancel_count_d)+sum(click_cost_d)+sum(click_cost_cl_d)+sum(action_cost_d)+sum(action_cost_cl_d) as d, sum(pv_count_v)+sum(action_click_count_v)+sum(click_count_v)+sum(click_unique_count_v)+sum(action_count_v)+sum(admit_count_v)+sum(cancel_count_v)+sum(click_cost_v)+sum(click_cost_cl_v)+sum(action_cost_v)+sum(action_cost_cl_v) as v, sum(pv_count_e)+sum(action_click_count_e)+sum(click_count_e)+sum(click_unique_count_e)+sum(action_count_e)+sum(admit_count_e)+sum(cancel_count_e)+sum(click_cost_e)+sum(click_cost_cl_e)+sum(action_cost_e)+sum(action_cost_cl_e) as e from stat_log_client_201310 where stat_date = '2013-10-01' group by stat_date,c_id order by cnt desc ,stat_date,c_id
|
303
|
|
304
|
select * from stat_log_client_201310 where stat_date = '2013-10-07' and c_id = 516
|
305
|
delete from stat_log_client_201310 where stat_log_id = 1715
|
306
|
update stat_log_client_201310 set
|
307
|
action_click_count_pc = 30,
|
308
|
click_count_pc = 30
|
309
|
where stat_log_id = 1714
|
310
|
|
311
|
select * from stat_log_client_201310 where stat_date = '2013-10-07' and c_id = 642
|
312
|
delete from stat_log_client_201310 where stat_log_id = 1717
|
313
|
update stat_log_client_201310 set
|
314
|
action_click_count_pc = 18,
|
315
|
click_count_pc = 18
|
316
|
where stat_log_id = 1716
|
317
|
|
318
|
select * from stat_log_client_201310 where stat_date = '2013-10-08' and c_id = 648
|
319
|
delete from stat_log_client_201310 where stat_log_id = 2050
|
320
|
update stat_log_client_201310 set
|
321
|
action_click_count_d = 1,
|
322
|
click_count_d = 1
|
323
|
where stat_log_id = 2049
|
324
|
|
325
|
select * from stat_log_client_201310 where stat_date = '2013-10-11' and c_id = 1015
|
326
|
delete from stat_log_client_201310 where stat_log_id = 2873
|
327
|
update stat_log_client_201310 set
|
328
|
action_click_count_pc = 39,
|
329
|
click_count_pc = 39
|
330
|
where stat_log_id = 2872
|
331
|
|
332
|
select * from stat_log_client_201310 where stat_date = '2013-10-15' and c_id = 584
|
333
|
delete from stat_log_client_201310 where stat_log_id = 3768
|
334
|
update stat_log_client_201310 set
|
335
|
action_click_count_pc = 9,
|
336
|
click_count_pc = 9
|
337
|
where stat_log_id = 3767
|
338
|
|
339
|
select stat_date,c_id,count(stat_log_id) as cnt from stat_log_banner_201310 where stat_date = '2013-10-01' group by stat_date,c_id order by cnt desc ,stat_date,c_id
|
340
|
|
341
|
select * from stat_log_banner_201310 where stat_date = '2013-10-07' and c_id = 516
|
342
|
delete from stat_log_banner_201310 where stat_log_id = 1675
|
343
|
|
344
|
select * from stat_log_banner_201310 where stat_date = '2013-10-07' and c_id = 517
|
345
|
delete from stat_log_banner_201310 where stat_log_id = 1682
|
346
|
|
347
|
select * from stat_log_banner_201310 where stat_date = '2013-10-07' and c_id = 642
|
348
|
delete from stat_log_banner_201310 where stat_log_id = 1677
|
349
|
|
350
|
select * from stat_log_banner_201310 where stat_date = '2013-10-07' and c_id = 849
|
351
|
delete from stat_log_banner_201310 where stat_log_id = 1685
|
352
|
|
353
|
select * from stat_log_banner_201310 where stat_date = '2013-10-07' and c_id = 997
|
354
|
delete from stat_log_banner_201310 where stat_log_id = 1665
|
355
|
|
356
|
select * from stat_log_banner_201310 where stat_date = '2013-10-08' and c_id = 648
|
357
|
delete from stat_log_banner_201310 where stat_log_id = 2006
|
358
|
|
359
|
select * from stat_log_banner_201310 where stat_date = '2013-10-11' and c_id = 1015
|
360
|
delete from stat_log_banner_201310 where stat_log_id = 2812
|
361
|
|
362
|
select * from stat_log_banner_201310 where stat_date = '2013-10-15' and c_id = 584
|
363
|
delete from stat_log_banner_201310 where stat_log_id = 3685
|
364
|
|
365
|
select * from stat_log_banner_201310 where stat_date = '2013-10-15' and c_id = 774
|
366
|
delete from stat_log_banner_201310 where stat_log_id = 3719
|
367
|
|
368
|
select stat_date,m_id,asp_id,c_id,item_id,count(stat_log_id) as cnt, sum(pv_count_pc)+sum(action_click_count_pc)+sum(click_count_pc)+sum(click_unique_count_pc)+sum(action_count_pc)+sum(admit_count_pc)+sum(cancel_count_pc)+sum(click_cost_pc)+sum(click_cost_cl_pc)+sum(action_cost_pc)+sum(action_cost_cl_pc)+sum(resign_count_pc)+sum(this_month_resign_count_pc) as pc, sum(pv_count_d)+sum(action_click_count_d)+sum(click_count_d)+sum(click_unique_count_d)+sum(action_count_d)+sum(admit_count_d)+sum(cancel_count_d)+sum(click_cost_d)+sum(click_cost_cl_d)+sum(action_cost_d)+sum(action_cost_cl_d)+sum(resign_count_d)+sum(this_month_resign_count_d) as d, sum(pv_count_v)+sum(action_click_count_v)+sum(click_count_v)+sum(click_unique_count_v)+sum(action_count_v)+sum(admit_count_v)+sum(cancel_count_v)+sum(click_cost_v)+sum(click_cost_cl_v)+sum(action_cost_v)+sum(action_cost_cl_v)+sum(resign_count_v)+sum(this_month_resign_count_v) as v, sum(pv_count_e)+sum(action_click_count_e)+sum(click_count_e)+sum(click_unique_count_e)+sum(action_count_e)+sum(admit_count_e)+sum(cancel_count_e)+sum(click_cost_e)+sum(click_cost_cl_e)+sum(action_cost_e)+sum(action_cost_cl_e)+sum(resign_count_e)+sum(this_month_resign_count_e) as e from stat_log_item_201310 where stat_date = '2013-10-01' group by stat_date,m_id,asp_id,c_id,item_id order by cnt desc ,stat_date,m_id,asp_id,c_id,item_id
|
369
|
|
370
|
select stat_date,m_id,c_id,shop_id,count(stat_log_id) as cnt, sum(pv_count_pc)+sum(action_click_count_pc)+sum(click_count_pc)+sum(click_unique_count_pc)+sum(action_count_pc)+sum(admit_count_pc)+sum(cancel_count_pc)+sum(click_cost_pc)+sum(click_cost_cl_pc)+sum(action_cost_pc)+sum(action_cost_cl_pc)+sum(resign_count_pc)+sum(this_month_resign_count_pc) as pc, sum(pv_count_d)+sum(action_click_count_d)+sum(click_count_d)+sum(click_unique_count_d)+sum(action_count_d)+sum(admit_count_d)+sum(cancel_count_d)+sum(click_cost_d)+sum(click_cost_cl_d)+sum(action_cost_d)+sum(action_cost_cl_d)+sum(resign_count_d)+sum(this_month_resign_count_d) as d, sum(pv_count_v)+sum(action_click_count_v)+sum(click_count_v)+sum(click_unique_count_v)+sum(action_count_v)+sum(admit_count_v)+sum(cancel_count_v)+sum(click_cost_v)+sum(click_cost_cl_v)+sum(action_cost_v)+sum(action_cost_cl_v)+sum(resign_count_v)+sum(this_month_resign_count_v) as v, sum(pv_count_e)+sum(action_click_count_e)+sum(click_count_e)+sum(click_unique_count_e)+sum(action_count_e)+sum(admit_count_e)+sum(cancel_count_e)+sum(click_cost_e)+sum(click_cost_cl_e)+sum(action_cost_e)+sum(action_cost_cl_e)+sum(resign_count_e)+sum(this_month_resign_count_e) as e from stat_log_shop_201310 where stat_date = '2013-10-01' group by stat_date,m_id,c_id,shop_id order by cnt desc ,stat_date,m_id,c_id,shop_id
|