What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table
Answer Posted / hasan
Both are same .
They r showing all results.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is implicit mode in sql server?
How to delete duplicate records based on single column from a table?
What is the difference between dropping a database and taking a database offline?
What is a scheduled job or what is a scheduled task?
How can I add Reporting Services reports to my application?
Explain Capacity planning to create a database? and how to monitor it?
What are the differences between having and where clause.
What is trigger explain with program?
what is a live lock? : Sql server database administration
What authentication modes does sql server support?
What are pessimistic lock and optimistic lock?
Mention a few common trace flags used with sql server?
What is updatable resultset?
what are candidate key, alternate key and composite key? : Sql server database administration
Explain what are the basic functions for master, msdb, model, tempdb databases?