so Basically I have a table called \"table_1\" :
ID Index STATUS TIME DESCRIPTION 1 15 pending 1:00 Start
INSERT INTO table_2 SELECT id,status,min(time) FROM table_1 AS t1 WHERE EXISTS(SELECT 1 FROM table_1 WHERE id=t1.id AND status='complete') GROUP BY id,status
I think that should do it for you, haven't tested it though :(