Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the different types of collation sensitivity?

1108


What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?

4371


What is a unique key constraint?

1022


What is normalization? Describe its different types.

1096


What is the use of “join” in sql server?

1076


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

2383


Can a database be shrunk with users active?

1119


how to control the amount of free space in your index pages? : Sql server database administration

1026


What is the difference between substr and charindex in the sql server?

1084


How to attach adventureworkslt physical files to the server?

1100


Explain different types of index?

1040


What are the disadvantages of primary key and foreign key in SQL?

1101


What is a fill factor?

1076


How to create new tables with "select ... Into" statements in ms sql server?

981


Do you know what is replace and stuff function in sql server?

999