Is this possible to be done in SQL procedure?

Printable View