Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the output of this query selet * from employee
where 1=2 ??

Answers were Sorted based on User's Feedback



what is the output of this query selet * from employee where 1=2 ??..

Answer / priyanka agarwal

It will return 0 rows as 1 will never be ewual to 2

Is This Answer Correct ?    50 Yes 2 No

what is the output of this query selet * from employee where 1=2 ??..

Answer / narendradivvela

no rows selected

Is This Answer Correct ?    33 Yes 0 No

what is the output of this query selet * from employee where 1=2 ??..

Answer / selvaraj v, anna university

In Oracle 10g :
---------------

no rows selected.


E.g:
----

SQL> SELECT * FROM job;

EMPNO JOBTITLE
--------- --------------------
1 Tester
2 Accountant
3 Developer
4 COder
5 Director
6 Mediator
7 Proffessor
8 Programmer
9 Developer

9 rows selected.

SQL> SELECT * FROM job WHERE 1=2;

no rows selected.

Is This Answer Correct ?    19 Yes 0 No

what is the output of this query selet * from employee where 1=2 ??..

Answer / rohan mhatre

It will return 0 rows....since condition in where clause
will fail as 1 is not equal to 2

Is This Answer Correct ?    18 Yes 1 No

what is the output of this query selet * from employee where 1=2 ??..

Answer / julien

indeed it will return o rows, but the goal behind is to
create a new table t2 as select * from t1 where 1=2, where
just the structure of table t1 will be copied without
copying data from table t1.

Is This Answer Correct ?    14 Yes 0 No

what is the output of this query selet * from employee where 1=2 ??..

Answer / ashokkumar

create table temp_employee as select * from employee where 1=2;
this is only for a correct answer..
it is create from a temporary table in same table name.

Is This Answer Correct ?    0 Yes 0 No

what is the output of this query selet * from employee where 1=2 ??..

Answer / prabu t

Error report:
Unknown Command

Is This Answer Correct ?    0 Yes 0 No

what is the output of this query selet * from employee where 1=2 ??..

Answer / rakesh anand

In Oracle Database 10g Express Edition
it shows "no data found"

Is This Answer Correct ?    0 Yes 0 No

what is the output of this query selet * from employee where 1=2 ??..

Answer / chinnu

It will be displayed as NULL

Is This Answer Correct ?    0 Yes 6 No

what is the output of this query selet * from employee where 1=2 ??..

Answer / bhagyashree

it will return those query whose value will be 2 in first
column

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More SQL PLSQL Interview Questions

Is sql between inclusive?

0 Answers  


Explain ddl statements in pl/sql?

0 Answers  


write a query to remove null following table are id name 101 dinesh null jyothi null bharathi 102 suresh null shilpha 103 prakesh null suma i want the output format like id name 101 dinesh 102 suresh 103 prakesh

3 Answers   TCS,


Is clustered index a primary key?

0 Answers  


What does select * from mean in sql?

0 Answers  


Why is pl sql used?

0 Answers  


What are the types of dbms?

0 Answers  


why should required nested tables, Object types, partition tables and varying arrays. what is the difference between these are all. give me example with explanation.

2 Answers  


What is an escape character in sql?

0 Answers  


What is normalization in a database?

0 Answers  


Define overloaded procedure?

0 Answers  


How do I run a program in pl sql?

0 Answers  


Categories