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 output for this query
select * from employee where 1=1;

Answer Posted / soorai ganesh

This Query will return all records from employee table.

Infact insteadof this query u can use " select * from employee ".Because the condition 1=1 is always true.It never become as false.

Both of the Queries are same..........

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a simple user defined function in ms sql server?

1022


What are the restrictions that views have to follow?

972


what method you can use to reduce the overhead of Reporting Services data sources?

255


How to create a view using data from another view?

950


Where do you find the default Index fill factor and how to change it?

1063


between cast and convert which function would you prefer and why?

956


Please differentiate between a local and a global temporary table?

1007


What are the types of normalization?

1031


Where cross join is used?

965


Why do we need normalization?

931


Do you know how to make remote connection in database?

965


Explain the properties of the relational tables?

996


How will you optimize a stored procedure optimization?

1042


What is database replication? What are the different types of replication you can set up in sql server?

959


What is self contained scalar sub query?

974