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

Answer Posted / akbar ali

The first query satisfies the condition true condition.

both are similar but not same. performance based querys ...

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a field name?

515


Tell me what is the stuff and how does it differ from the replace function?

540


What is default port number for sql server 2000?

598


What are database states in ms sql server?

653


Which are the olap features?

550






What is default constraint?

543


What is sql server used for?

556


State the difference between local and global temporary tables?

565


What is difference between aggregate and analytic function?

483


Why normalization is used?

555


How to view existing indexes on an given table using sys.indexes?

595


Explain syntax for dropping triggers?

521


What is role playing dimension with two examples? : sql server analysis services, ssas

592


Which language is supported by sql server?

559


How can we delete Duplicate row in table?

636