select statement create table and copy data