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


Please Help Members By Posting Answers For Below Questions

What are the different types of backups that exist?

674


What happens if the update subquery returns no rows in ms sql server?

587


Difference between DELETE and TRUNCATE?

613


How to create sub reports?

192


what authentication modes does sql server support? : Sql server database administration

516






What command do we use to rename a database?

609


What is ms sql server service broker?

513


what types of replication are supported in sql server? : Sql server database administration

455


How to modify the underlying query of an existing view?

530


What type of locking occurs during the snapshot generation? : sql server replication

862


What is a full text index?

490


Write a Select Query to display title for each group of records, which are collected with Compute Clause? Like titlefield column-A column-B ..... ..... ..... Sum ... titlefield column-A column-B ..... ..... ..... Sum ...

1569


Which data type columns are the best candidates for full-text indexing?

596


What is Federation Root Database?

90


What is table value parameters (tvp)?

537