What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table

Answer Posted / krishna sandeep

Of course, both the Queries will get you the same data but,

When compared to the first case processing time will be
slightly reduced in the second case.

Bytes sent from client and Bytes received from server will
be more in the first case.

and one more thing is better not using "select * from ..."

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do you want to join software field as you have done your BE in Electronics?

1899


How to delete duplicate rows from table except one?

721


What is data modeling and Reterminal integrity?

1703


Tell me something about security and sql azure?

112


What is transactional replication?

722


what is bit datatype and what's the information that can be stored inside a bit column? : Sql server database administration

725


What is side by side migration in sql server?

757


What is sql server query analyzer?

717


Is a primary key unique?

709


How to create database with physical files specified in ms sql server?

738


what is a check constraint?

847


Mention the 3 ways to get a count of the number of records in a table.

722


How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

129


What is database dimension? : sql server analysis services, ssas

847


How to create new table with "create table" statements?

737