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

Can we add our custom code in ssis?

541


What are the new data types are introduced in sql 2000?

497


What is bcp? When does it used?

543


How do I open port 1433?

517


What is the correct order of the logical query processing phases?

521






What is sql view?

538


how can you attach more than 20 ldf files in sql server

1565


What are the new features are introduced in sql server 2012 reporting services?

105


what are the different types of SSRS reports?

112


What is lock escalation? : sql server database administration

592


Can primary key be a foreign key?

558


What is sparse columns of sql server 2008?

598


Which data type columns are the best candidates for full-text indexing?

596


Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security

576


What is inner join? Explain with an example?

686