what is the output for this query
select * from employee where 1=1;

Answer Posted / soorai ganesh

This Query will return all records from employee table.

Infact insteadof this query u can use " select * from employee ".Because the condition 1=1 is always true.It never become as false.

Both of the Queries are same..........

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is use of dbcc commands?

599


What the different types of Replication and why are they used?

627


What is log ldf?

638


What is Federation Root Database?

92


Explain the flow of creating a cube? : sql server analysis services, ssas

712






How to connect ms access to sql servers through odbc?

633


your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration

657


What are user-defined functions (udfs) in sql server?

648


Describe in brief authentication modes in sql server.

654


Tell me time data type, datetime2, datetimeoffset data type in sql server 2008?

657


What is difference between global temporary tables and local temporary tables?

768


What is the use of nvl work?

655


How do you create a clustered index?

612


Explain contrast amongst grouped and non-bunched records?

606


Explain what is raid and what are different types of raid levels?

611