use bidi; insert into t values (1, 'abc', 1, '2010-02-01 05:45:30'), (2, 'def', 2, '2010-01-31 06:11:11'), (3, 'ghi', 5, '2010-02-01 09:17:52'), -- 1s newer than remote-1 (4, 'jkl', 6, '2010-02-01 10:11:33'), (5, 'mno', 3, '2010-02-01 10:17:40'), (6, 'p', 4, '2010-01-31 10:17:00'), (7, 'qrs', 5, '2010-02-01 10:11:11'), (8, 'tuv', 6, '2010-01-31 10:17:20'), (9, 'wxy', 7, '2010-02-01 10:17:00'), (10, 'z', 8, '2010-01-31 10:17:08'), -- (11, '?', 0, '2010-01-29 11:17:12'), -- in remotes (12, '', 0, '2010-02-01 11:17:00'), (13, NULL, 0, '2010-02-01 12:17:31'), (14, NULL, 0, '2010-01-31 10:17:00'), (15, 'NA', 0, '2010-01-31 07:00:01'), (20, 'new', 100, '2010-02-01 04:15:36'); -- not in remotes