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

Can one drop a column from a table?

967


Explain powershell included in sql server 2008?

1002


wat wil hapn if we give the both read and deny read permission to user?

2063


Describe in brief authentication modes in sql server.

968


What are the advantages of using stored procedures in sql server?

955


How to start and end transact-sql statements?

971


Where are sql server usernames and passwords stored in the sql server?

1045


What is a trigger and types of a trigger?

926


Why main is user defined function?

954


What structure can you implement for the database to speed up table reads?

1157


Is sql server implemented as a service or an application? : Sql server database administration

897


Can sub report data source be different from that of the parent report?

135


In which format does an image save in SQL Server database ?

949


How do we synchronize On-Premise SQL server with SQL Azure?

120


What is b tree index?

859