Do not return more columns or rows of data to the client than necessary. This simply increases disk I / O on the server and network traffic, which wraps up performance. In SELECT do not use SELECT * to return rows; always specify in the SELECT exactly which columns are needed to return for this particular query, and not for a column larger. In most cases, be sure to include the WHERE to reduce the number or lines sent only to those lines that clients must execute immediately.
In my opinion, the big difference will be in your complex WHERE , like where the main actions, involved indices, etc.
All that said, I believe that the second will work better in almost all scenarios.
Check out this detailed article by Steve Jones on SQL Central .
source share