What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table
Answer Posted / malathi
Both the Queries will return the same ouput.
That means it will return all the rows that are available
in the table.
| Is This Answer Correct ? | 45 Yes | 3 No |
Post New Answer View All Answers
how to control the amount of free space in your index pages? : Sql server database administration
Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?
What is triggers and stored procedures?
What is the most common trace flags used with sql server?
what is a major difference between sql server 6.5 and 7.0 platform wise? : Sql server database administration
What are click through reports?
What are different type of Collation Sensitivity?
What are temporal tables in sql server 2016?
Write a SQL queries on Self Join and Inner Join.
As per your opinion what are the five top responsibilities of a dba? : sql server database administration
How to drop existing views from a database in ms sql server?
What is enhanced database mirroring in sql server 2008?
What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration
How can you tell if a database object is invalid?
What is scan table/view and seek table/view when its occurs? : sql server database administration