oracle concatenation in where clause

Hi All,

trying to create a query using
select datevalue, timestamp from numericlog
where namelog = functiona'||'functionb'||'functionc

when i tried to use this i am get an error saying
Multiple Query Filters contain a prompt with the same text, but different operand type or operator count of values

Can someone help me what i am missing over here.
romeiovasuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
The single quotes look off for Oracle.

Maybe something like this:
 functiona||functionb||functionc

That isn't an Oracle message.
What tool/product are you using?
What are functiona, b and c?  Are they database functions?
0
romeiovasuAuthor Commented:
yes they are database functions.

In oracle lets say if i want to use concatenation how should i use in where clause.
0
romeiovasuAuthor Commented:
even if remove single quotes i am still getting the same error
Multiple Query Filters contain a prompt with the same text, but different operand type or operator count of values
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

MikeOM_DBACommented:
In oracle lets say if i want to use concatenation how should i use in where clause.
Same as in the query body, try removing the quotes.
:p
0
slightwv (䄆 Netminder) Commented:
What tool are you using?

Can you run the query in sqlplus?
0
MikeOM_DBACommented:
even if remove single quotes i am still getting the same error
as slightwv poited out that is not an Oracle error look it up in the reference manual  of the utility you are using.
0
slightwv (䄆 Netminder) Commented:
This works for me using sqlplus:
create or replace function funcA return varchar2 is begin return 'a'; end;
/

create or replace function funcB return varchar2 is begin return 'b'; end;
/

create or replace function funcC return varchar2 is begin return 'c'; end;
/


select 'Hello' from dual where 'abc' = funcA||funcB||funcC;

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.