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

What are the elements of dbms?

959


What are the difficulties faced in cube development? : sql server analysis services, ssas

1040


Is the log file is a part of file group?

1034


How to call a function from a stored procedure in SQL Server ?

1026


Tell me what do we need queues in sql service broker?

989


Can you pass expressions to stored procedure parameters?

1026


What are the tool windows in sql server management studio? : sql server management studio

1073


What is the use of nvl work?

995


Explain difference between control flow and data flow?

961


Why use triggers?

1010


Explain about the command-line tool SQLCMD?

1083


Detail about the hardware which is supported by SQL server?

1063


How to apply cascading referential integrity in place of triggers?

1029


What is after dml trigger?

1011


Can you explain important index characteristics?

987