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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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?
romeiovasuAuthor Commented:
yes they are database functions.

In oracle lets say if i want to use concatenation how should i use in where clause.
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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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
slightwv (䄆 Netminder) Commented:
What tool are you using?

Can you run the query in sqlplus?
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.
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

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.