What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table
Answer Posted / kohulavani.g
First query,in table where 1=1 condition is satisfied that
row or column is displayed
But in second query,the whole table is displayed
| Is This Answer Correct ? | 18 Yes | 44 No |
Post New Answer View All Answers
What happens if null values are involved in datetime operations?
Why transaction is important?
Can two tables share a primary key?
Can you explain what is sql server english query?
Can you edit the .rdl code associated with a linked report?
How to insert and update data into a table with "insert" and "update" statements?
What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration
Explain collation?
How to use subqueries with the exists operators in ms sql server?
what is the information that can be stored inside a bit column? : Sql server database administration
Mention the different types of triggers?
What is application role in sql server database security? : sql server security
Explain differences between web edition and business edition?
Explain powershell included in sql server 2008?
What is the default port for SQL Server over a firewall?