How to modify SQL queries in best way

How to modify SQL in best way is I have given in this post two options. You can choose appropriately.

Advertisements