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

How to create an oracle testing table?

584


How to connect to a remote server?

548


What is hot backup and logical backup?

595


Is postgres faster than oracle?

552


How to add another datafile to a tablespace?

569






What is the difference between "as" and "is" in an oracle stored procedure?

529


What is a sub query? What are its various types?

575


What are the different types of synonyms?

581


Typically, where is the conventional directory structure chosen for Oracle binaries to reside?

1574


How to fetch the row which has the max value for a column?

530


What is meant by an index?

610


What is oracle database client?

543


What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.

640


What privilege is needed for a user to create tables in oracle?

544


Where do you use decode and case statements?

544