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

Answer Posted / phani

In First case it will not return any rows. only the colum
names will be displayed.

In the second case all the records that are available in
the table will be displayed.

Is This Answer Correct ?    61 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?

754


What is trigger in salesforce?

502


What happens if null values are involved in arithmetic operations?

590


What happens if you are trying to access a schema not owned by you?

514


Does the unique constraint create an index?

569






What are a scheduled jobs or what is a scheduled tasks?

496


What types of Joins are possible with Sql Server?

553


How do I debug a stored procedure in sql server?

541


1.what are diff types of joins , and explain diff between cross join and full outer join 2.diff types of views 3. Diff types of index 4. What is diff b/w stores procedure and function procedure 5.diff between double and int in SQL 6.diff between char and varchar in SQL. 7.Oracle or SQL whice you will preferred and why.

1098


Explain what are the restrictions that views have to follow? : SQL Server Architecture

597


How to view existing indexes on an given table using sp_help?

597


What the different topologies in which replication can be configured?

560


How to get a list of columns in a view using "sys.columns" in ms sql server?

519


What is star, snowflake and star flake schema? : sql server analysis services, ssas

665


What are the export options of ssrs?

126