CREATE TABLE notes_tmp AS (SELECT note_id, file_id FROM notes)