You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
336 B
13 lines
336 B
CREATE TABLE network(src varchar(3), dst varchar(3), len int, _time int)
|
|
|
|
|
|
LOAD DATA INFILE "data/network.csv"
|
|
INTO TABLE network
|
|
FIELDS TERMINATED BY ","
|
|
|
|
SELECT src, dst, count(*), avg(len)
|
|
FROM network
|
|
ASSUMING ASC src, ASC dst, ASC _time
|
|
GROUP BY src, dst, sums (deltas(_time) > 120)
|
|
|
|
-- Assuming preserve order at the end. |