Sql Server Declare Table Variable From Select