CREATE VIEW as SELECT CTID, .... SELECT currtid( a view, ..).
Attach a file by drag & drop or click to upload