creating dependent and independent create table query