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 is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration

1021


What are key, name and value columns of an attribute? : sql server analysis services, ssas

1017


What are synonyms?

962


How many tables can be joined in SQL Server?

1065


Can we return Data from 4(more than 1) tables in stored procedure?

1059


What is the difference between functions and stored procedures?

1165


Differentiate between mongodb vs. Sql server?

1101


What is a recursive stored procedure in sql server?

1175


Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?

986


How do you delete a data source?

1011


What does it mean to invest in the index?

973


How to reaname table name without using sp_Rename in sql server..?

996


How can I create a new template for import ? : sql server management studio

1073


can SSRS reports Cache results?

147


How to convert numeric values to integers in ms sql server?

1093