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

Answer Posted / vidit

The results of both queries will be same
but 2nd will fast then 1st

vidit Tyagi
Meerut

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is save transaction and save point?

622


What is the difference between resultset and resultsetmetadata?

519


What is the fillfactor concept in indexes?

532


what is a correlated sub-query? : Sql server database administration

482


What is Federation and Federation Member?

80






What are subqueries in sql server?

599


Explain what are the restrictions while creating batches in sql server?

587


What is single-user mode?

524


What is "scheduled jobs" or "scheduled tasks"?

556


Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?

514


How to delete existing rows in a table?

591


What is a covered index?

521


What is tabulation?

559


What does it mean to be in union?

526


Explain what role entity and relationship play in an ER diagram.

578