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

Answer Posted / g.nageswara rao

in first query 1=1 always true,then it retrives all columns
in a table.
so,there is no difference in between these two

Is This Answer Correct ?    39 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to convert a unicode strings to non-unicode strings?

554


How sql server enhances scalability of the database system?

581


Explain the difference between control flow and data flow?

525


How to create an index on an existing table in ms sql server?

493


What is the exact numeric data type in sql?

547






Tell me about joins in database system and explain each in detail.

589


Is it important for a database administrator to understand the operating system and file access?

504


I applied Transactional with updatable subscriptions replication on 2 tables now i want to delete those 2 tables but i cannot delete those tables as replication is running how can i stop replication for those 2 tables(but i don't want to delete those replicated tables but i need to stop the replication) how can i do that

1433


Why do we backup Active Directory ?

607


What are different types of replication in sql server?

566


Explain the different index configurations a table can have?

500


explain the storage models of olap? : Sql server database administration

516


What is perspective, have you ever created perspective? : sql server analysis services, ssas

493


What is acid mean in sql server?

567


Describe and explain about SQL native client?

608