Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
15 replies
Subscribers
9 subscribers
Views
6675 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I am running a simple query where I want to get multiple values from db. s
nitas811
over 10 years ago
I am running a simple query where I want to get multiple values from db.
select x from pushgrouptable where jiraId in ('PPCQV1','PPCQV2')
The query works from sql however from appian I do not get any data. Is there anyway to get this info from table? ...
OriginalPostID-122365
OriginalPostID-122365
Discussion posts and replies are publicly visible
0
subhankarb
over 10 years ago
Hi Chandhini, I guess you have used "" inside the concat function. But from the attachment Eduardo has shared ,you should use single quotes instead of double quotes.
instr(ac!id,concat("|",columnname,"|"))>0
should be
instr(ac!id,concat('|',columnname,'|'))>0
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandhinir
over 10 years ago
Hi Subhankar,
I have used single quote also but geeting the same error message.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
If this is SQL Server and not MySQL try the following query (placing the WHERE in a second line and making sure there's NO trailing space after the table name nor leading space before the WHERE )
select columnname from table
where instr(ac!id,concat("|",columnname,"|"))>0 .
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandhinir
over 10 years ago
Hi Eduardo,
I tried the above query but got the error message as "The database returned ARV's that may not be supported. Message: \\'instr\\' is not a recognized built-in function name."
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
That is because instr is a function in MySQL. You need to use the equivalent in SQL Server
msdn.microsoft.com/.../ms186323.aspx
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<