Hello and thanks in advance:
I have a (I'm sure..) little problem. One of the condiutions of a query is as follows:
and x_dep_name in ('0007 Computer', '15 Notebooks')
now: users has started to insert values like '0007 Computer' and the systemd allows to do that.
Quick fix: I have modified the query as follows:
and x_dep_name in ('0007 Computer', '07 Computer', '15 Notebooks')
Then I modify the data in excel to convert '07 Computer' to '0007 Computer'.
A bit of a fain so I have decided to use the decode function to convert convert '07 Computer' to '0007 Computer' as follows:
x_dep_name in (decode(x_dep_name, '07 Computer', '0007 Computer', x_dep_name), '15 Notebooks')
it should work shouldn't it?
The think is that it brings up ALL the departments not only '07' and '15'.
Can anybody help?
Thanks
========================================================
Computer Vancouver: computer resources - list of related websites and resources with manufacturer information, books, reports, training, downloadable software, and industry exhibits.
I have a (I'm sure..) little problem. One of the condiutions of a query is as follows:
and x_dep_name in ('0007 Computer', '15 Notebooks')
now: users has started to insert values like '0007 Computer' and the systemd allows to do that.
Quick fix: I have modified the query as follows:
and x_dep_name in ('0007 Computer', '07 Computer', '15 Notebooks')
Then I modify the data in excel to convert '07 Computer' to '0007 Computer'.
A bit of a fain so I have decided to use the decode function to convert convert '07 Computer' to '0007 Computer' as follows:
x_dep_name in (decode(x_dep_name, '07 Computer', '0007 Computer', x_dep_name), '15 Notebooks')
it should work shouldn't it?
The think is that it brings up ALL the departments not only '07' and '15'.
Can anybody help?
Thanks
========================================================
Computer Vancouver: computer resources - list of related websites and resources with manufacturer information, books, reports, training, downloadable software, and industry exhibits.