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

Hi,

select * from EMP where null=null;
->null=null is always false so it gives 0 records.
if it is null is null then it fetches all the records in a
table..

select * from EMP where 1=1;
->it fetches all the records in a table
if it is select * from EMP where 1=2;
-->it fetches 0 records..

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the contrast between sql and pl/sql?

1114


How to copy the tables, schema and views from one sql server to another?

1027


Explain what are magic tables in sql server?

978


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

1125


What is the name of reporting services config file and what’s it’s used for?

144


What is the status of services on passive node for failover cluster in sql server? : sql server database administration

1230


How to count groups returned with the group by clause in ms sql server?

1046


Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security

1029


What are diverse clauses that form a part of sql?

1052


What is sqlcmd?

1020


How to list all user defined functions in the current database?

1018


What is the difference between varchar and varchar(max) datatypes?

1047


What are the main sources of data?

1074


What are clustered and non-clustered index?

991


How to access the deleted record of an event?

1015