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

a) first statement return only table structure (with out
data)
Eg: empid empname

b) second statement return the structure with data.

Eg: empid empname
101 radha
102 krishnan

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the types of indexes.

1299


How many instances per computer are there in sql server 2000?

1122


How can you list all the table constraints in a database?

985


What is a mutating table error and how can you get around it?

1129


Why do we use sql limitations? Which constraints can we use while making a database in sql?

1130


What are the advantages of passing name-value pairs as parameters?

1219


How to create prepared statements using odbc_prepare()?

1106


What is enhanced database mirroring in sql server 2008?

1037


Explain differentiate between a having clause and a where clause?

954


Difference between primary key and clustered index?

1065


What happens when converting big values to integers?

1060


What is table constraint?

1052


What is entity data services?

1117


What is the difference between indexing and hashing?

1226


Does dbcc checkdb requires db to be in single_user mode? : sql server database administration

1030