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

Answer Posted / akbar ali

The first query satisfies the condition true condition.

both are similar but not same. performance based querys ...

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are page splits?

762


How to write a query with an inner join in ms sql server?

755


Explain steps of normalization?

719


What is difference between global temporary tables and local temporary tables?

878


Does a sql server 2005 select statement require a from?

777






Explain the difference between cross join and full outer join?

676


Explain syntax for viewing trigger?

708


How to use "begin ... End" statement structures in ms sql server?

681


What do you understand by a stored procedure?

784


Does windows server 2016 come with sql server?

677


In which tcp/ip port does sql server run? Can it be changed?

722


Can we add an identity column to decimal datatype?

757


What is the use of toad or sqldbx.?

887


What is the Control Flow in SSIS

779


What is mapping schema?

770