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
Explain what are the restrictions that views have to follow? : SQL Server Architecture
What is user-defined function?
Why truncate is ddl?
Please explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?
What is field with example?
In which files does sql server actually store data?
Why I am getting this error when renaming a database in ms sql server?
How to create dbo table in sql server?
What is the use of builtinadministrators group in sql server? : sql server security
How will you add a dimension to cube? : sql server analysis services, ssas
What is log shipping? Can we do logshipping with SQL Server 7.0 ?
Can you please differentiate between a primary key and a unique key?
How to enter comments in transact-sql statements?
What is relationship? What number of sorts of relationship are there?
What is the data tier application?