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
Can foreign key be duplicate?
What is the purpose of the tempdb database?
explain different types of constraints? : Sql server database administration
How each E-R model constructs can be mapped to the relational model?
What is the usage of sign function?
How to return the top 5 rows from a select query in ms sql server?
How do I delete a sql server database?
What is the purpose of the model database?
explain extended properties
Which are the third-party tools used in sql server and why would you use them?
What is a join in sql?
What is similarity and difference between truncate and delete in sql?
Can group by and orderby be used together?
What is normalization? Explain different forms of normalization?
How will you make an attribute not process? : sql server analysis services, ssas