What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table

Answer Posted / malathi

Both the Queries will return the same ouput.
That means it will return all the rows that are available
in the table.

Is This Answer Correct ?    45 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to determine the service pack currently installed on sql server? : Sql server database administration

561


How to delete existing triggers using "drop trigger"?

556


What is normalization and what are the advantages of it?

512


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

862


What is normalization process?

593






What is the datatype of rowid?

504


Define indexes?

601


How to convert numeric expression data types using the cast() function?

542


Explain candidate key, alternate key, and composite key?

586


in the physical file layout, where should the transaction log be stored in relation to the data file?

527


how many type of indexing in database?

571


How do users use Report Builder with SQL Server data sources?

119


how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?

1092


Which language is supported by sql server?

553


Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?

561