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 / skumar

Both are returns the SAME results.

I dont know the meaning of the
SELECT * FROM Table_Name WHERE 1=1
SELECT * FROM Table_Name WHERE 2=2
SELECT * FROM Table_Name WHERE 5=5
SELECT * FROM Table_Name WHERE 100=100
.
.
.
etc..,

It accepts the where both are equal.

If you give like

SELECT * FROM Table_Name WHERE 100=1001
It is not accept.

Is This Answer Correct ?    34 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s the distinction between dropping a info and taking a info offline?

1090


How can change procedure in sql server?

1125


What is change tracking in sql server?

1075


What are the main sources of data?

1142


Determine when to use stored procedure to complete sql server tasks?

1107


Explain filestream storage of sql server 2008?

1077


What should be the fill factor for indexes created on tables? : sql server database administration

1177


Define cross join in sql server joins?

1078


Tell me about the approaches which you used to counter the DI problems.

1427


What is log in sql server?

1201


What are the functions in sql server?

989


What are different types of data sources?

1079


What types of replication are supported in sql server?

1111


Define constraints and give an example of their use?

1093


What are the properties of primary key?

1014