create a proc with dynamic sql and merge

Printable View