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

select *from addr1 where add1 is not null and add2 is null
and add3 is null or add1 is null and add2 is not null and
add3 is null or add1 is null and add2 is null
and add3 is not null

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What privilege is needed for a user to delete rows from tables in another schema?

1048


Explain enable novalidate constraint.

1064


Can we store images in oracle database?

989


Is it possible to set second Primary Key Constraint in a table in Oracle Database ?

1123


What is the maximum number of triggers that can be applied to a single table?

1003


How to enter a new row into a table interactively?

994


What is PL/SQL ?

2015


What are a cluster and non-cluster index?

996


What is the usage of synonyms?

1118


How to get a create statement for an existing table?

949


State the difference between a primary key and foreign key?

921


What is the data pump export utility?

1062


What are dml statements in oracle?

1075


How to use "for" statements in oracle?

1060


How to store only time; not date and time?

1006