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
How do I uninstall oracle client from windows?
How to start a specific oracle instance?
Explain the characteristics of oracle dba?
How do I start tns listener?
How do you find current date and time in oracle?
What happens if the imported table already exists?
What is a lookup table in oracle?
What are privileges and grants?
what is IDE,DMV in sql server?
Explain enable novalidate constraint.
How to set a transaction to be read only in oracle?
How to select some columns from a table in oracle?
How many categories of data types in oracle?
How to download oracle database 10g xe?
How to create lov dynamically at runtime & attach to text field?