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
Explain Geometry datatype in sql server 2008 with example
How does using a separate hard drive for several database objects improves performance right away?
what exactly sql injuction.how to overcome.....
How to add more data to the testing table in ms sql server?
What is isnull() operator?
Explain about Normalization?
What is query cost in sql server?
What is b tree index?
How to get the query of a table in sql server?
What is raid, and how it can influence database performance?
Can you tell me about the concept of ER diagrams?
What is the recovery model? List the types of recovery model available in sql server?
Suggest a method of joining two tables.
How to find the login name linked to a given user name?
Can sql servers link to other servers?