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
In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance
What do you mean by cardinality?
How do I start sql server?
Explain few of the new features of sql server 2008 management studio
How to add code to the existing article (using improve article)?
What is the purpose of sql profiler in sql server? : sql server database administration
What is attribute? : sql server analysis services, ssas
What are system databases into sql server (2005/2008) : sql server database administration
What are the tables in sql?
Differentiate between sql temp table vs table variable?
What is change data capture (cdc) in sql server 2008?
What are the properties of primary key?
What are the main sources of data?
Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?
What is the difference between a clustered index and a non-clustered index?