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
You want to implement the many-to-many relationship while designing tables. How would you do it?
Why do we use non clustered index?
what is the difference between Tabular and Matrix report?
How to drop an existing table?
What are dml triggers and types of dml triggers?
List out the differences between the clustered index and non-clustered index in sql server?
If we delete pack Spec what will be the status of pack Body ?
How can I check if a view exists in a sql server database?
What is openxml in sql server?
Explain how would you store your query in an SSRS report or a Database server?
Explain log shipping and mention its advantages.
how you can deploy an ssrs report?
How to create user defined functions with parameters?
Explain active/passive and active/active cluster configurations?
Give me a SQL Query to find out the second largest company?