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 get maxsal , minsal, ename department wise in single query

1021


How to shutdown your 10g xe server from command line?

556


How many file formats are supported to export data?

659


What are the differences between number and binary_float in oracle?

571


What is the data pump export utility?

645






What are the four Oracle system processes that must always be up and running for the database to be useable?

595


How can we delete duplicate rows in a table?

566


What is oracle open database communication (odbc)?

559


Explain what are the uses of rollback segment?

586


Explain a segment?

621


i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?

1470


Explain overloading. Can functions be overloaded?

575


How index is implemented in oracle database?

596


Explain implicit cursor.

558


What are the differences between char and nchar in oracle?

601