1 2 3 4 5
USE plato; INSERT INTO Output WITH (MONOTONIC_KEYS, KEEP_META, TRUNCATE) SELECT * FROM Input1 ORDER BY key, subkey;