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 out put of below queries?
a. select * from Emp where null = null;
b. select * from Emp where 1=1;

Answer Posted / jay vardhan singh

select * from Emp where null = null;

null can not be equal to null.So,Condition is not satisfied.
So,it will give only column name.

select * from Emp where 1=1;

1 is always equal to 1.So,Condition is satisfied ,So It
will give all data which is present in table.

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to execute stored procedure in select statement sql server?

1114


What is index, cluster index and nonclustered index?

1048


What are different types of join?

1378


What are the types of joins in sql?

1172


What is instead of trigger sql server?

1081


How to sort the query output with order by clauses in ms sql server?

1072


How to get nth highest salary from employee table.

1211


Why do we partition data?

1082


What are different types of constraints?

972


How do I find query history in sql server?

991


What is pivot and unpivot?

1066


What is the importance of concurrency control?

1274


How to change server name in sql server?

1254


When to use null data driven subscription?

213


Can you explain important index characteristics?

1032