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...

Hi all,
Can any one give answer for this question.
Suppose im having employee table with fields, eno, ename,
dept, address1, address2, address3.
In address field employee can fill only address1 or address2
or address3... at a time he can fill three address fields.
now i want all employee names who filled only one address
field.. Plz its urjent can any one give querry.. Thanks in
advance.

Answer Posted / babuli

select ename from emp where (address1 is not null or address2
is not null or address3 is not null) and
((address1 is null and address2 is null ) or (address1 is
null and address3 is null ) or (address2 is null and address3
is null ))

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the recommended interval at which to run statspack snapshots, and why?

2923


What is query image?

985


How to drop an index in oracle?

1078


State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.

1037


What privilege is needed for a user to query tables in another schema?

979


How to build data dictionary view an new database?

1016


How can you use check constraints for self referential integrity?

975


Difference between oracle's plus (+) notation and ansi join notation?

1111


What is Undo Management Advisor in Oracle?

1107


What are the differences between lov and list item?

1076


How to store only time; not date and time?

1029


How to create an oracle testing table?

1078


Explain the features of oracle?

1057


What are the different types of trigger and explain its various uses and functions?

1101


Difference between varchar and varchar2 data types?

1191