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

What are types of subqueries?

1062


How to define output parameters in stored procedures?

1024


How to create a testing table with test data in ms sql server?

1078


How many types of subqueries are there in sql server?

987


New concepts of sql server 2005 use in your project.

2357


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1135


Find nth lowest salary or get nth lowest salary?

1020


Explain tables in SQL Azure?

120


Explain the advantages of merge replication?

946


Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?

959


What is a field in a table?

1035


Do you know what is normalization of database? What are its benefits?

1113


How important do you consider cursors or while loops for a transactional database?

960


Explain sql delete command?

1044


What is the difference between getdate and sysdatetime?

999