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 / jigar

Select ename from employee
where
to_char(nvl2(address1,'1','0')||nvl2(address2,'1','0')||nvl2(address3,'1','0'))
in ('100','010','001')

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 a oracle database?

1064


How can we find out the duplicate values in an oracle table?

1055


Can you have more than one content canvas view attached with a window ?

2333


What happens if you use a wrong connect identifier?

1073


What happens if the update subquery returns multiple rows?

1124


Difference between inner join vs where ?

1047


What would you do with an in-doubt distributed transaction?

1988


How to write text literals in oracle?

1073


What are the execution control statements?

1073


Difference between hot backup vs. Cold backup?

1002


How data locks are respected in oracle?

1074


defination of bitmap index

2133


Give the various exception types.

997


Explain a segment?

1094


How to create id with auto_increment on oracle?

994