what is the out put of below queries?
a. select * from Emp where null = null;
b. select * from Emp where 1=1;

Answer Posted / poonam

First Query : will return all columns name without any data.
Second Query :will display all the records which are available in the table.bez Select* from emp where 1=1; the condition is true.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where can you add custom error messages to sql server?

586


What are user defined functions in ms sql server?

510


What is 2nf in normalization?

543


What is application role in sql server database security? : sql server security

558


What guidelines should be followed to help minimize deadlocks?

510






What stored by the msdb?

585


What does it mean to manipulate data?

566


Explain foreign key in sql server?

583


How do you create type- insensitive operator?

572


What are the results of running this script?

513


What is the recovery model? List the types of recovery model available in sql server?

491


How do you migrate data from mssql server to azure?

151


hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail

1790


What are the purpose of Normalisation?

640


How to make conditional sum in ssrs?

132