What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table
Answer Posted / g.nageswara rao
in first query 1=1 always true,then it retrives all columns
in a table.
so,there is no difference in between these two
| Is This Answer Correct ? | 39 Yes | 3 No |
Post New Answer View All Answers
What are the recovery models in sql server 2000?
When we should use @@error?
What is a print index?
Can a rule be bound to any column of any data type?
Thanks to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?
Can you explain what are various ways to enhance the ssrs report?
How to create user defined functions with parameters?
Difference between Logical Page and Physical Page in SSRS.
what is a transaction? : Sql server database administration
How to rename an existing column with sql server management studio?
What is Replication?
Where cross join is used?
What is meant by dirty read?
What are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture
What are the disadvantages of merge replication?