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 is a fan-out query in SQL Azure?

99


Name 3 of the features that the sql server built-in function loginproperty performs on standard logins? : sql server security

705


How fixed length strings are truncated and padded?

552


How to attach adventureworkslt physical files to the server?

634


What is collation sensitivity? Explain different types.

549






What is the difference between lock, block and deadlock? : sql server database administration

566


Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.

592


Can you pass expressions to stored procedure parameters?

504


What is single-user mode?

524


what's the difference between a primary key and a unique key? : Sql server database administration

502


What is 5nf in normalization form?

573


Define Joins?

612


What is row_number()?

582


What are the requirements to use odbc connections in php scripts?

597


What new changes are being made in SQL Server?

576