Sql create table with columns as another table