merge two sql into one with table suffix as parameter?