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

Answer Posted / gowthami radhakrishnan

a)in the first case there is no output only the column
names alone is displyed

b)in this case all rows will be displayed even for
1=1,2=2,3=3,..........

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cube dimension? : sql server analysis services, ssas

539


What are the built in functions in sql server?

493


Explain the third normal form(3nf)?

526


Tell me what do you mean by an execution plan? Why is it used? How would you view it?

531


What does the on delete cascade option do?

561






Which command is used for user defined error messages?

565


You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?

88


What is a db view?

520


Show Practically Sql Server Views are updatable?

595


What type of Index will get created after executing the above statement?

647


Define model database?

578


What is difference between rownum and rowid?

511


What is tabulation?

564


What is an indexing technique?

497


How can you control the amount of free space in your index pages?

620