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 is de-normalization in sql database administration? Give examples?
What are the purposes of floor and sign functions?
where can you add custom error messages to sql server? : Sql server administration
What is the new security features added in sql server 2014? : sql server security
What is the use of attributehierarchyvisible ? : sql server analysis services, ssas
How to Insert multiple rows with a single insert statement?
Explain security with sql azure?
What is tablix?
What is the difference between Stored Procedures and triggers?
What is the server name in sql server?
What are examples of triggers?
How to count duplicated values in a column in ms sql server?
What happens on checkpoint?
What is difference between count (*) and count column?
What is the Main Difference between ACCESS and SQL SERVER?