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
9 replies
Subscribers
6 subscribers
Views
3461 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
For the Query Database Smart Service, it looks like it doesn't allow an aste
nickh413445
Certified Senior Developer
over 9 years ago
For the Query Database Smart Service, it looks like it doesn't allow an asterisk (*) anywhere within the SQL statement field. The problem I'm running into is that I need to do a multiplication function within the SQL.
How do would we do multiplication in that SQL Statement box without using the asterisk?
OriginalPostID-152904
OriginalPostID-152904
Discussion posts and replies are publicly visible
Parents
0
ajinkyab277
Certified Lead Developer
over 9 years ago
Hi Nick
You cannot use * in SQl statement box, But if you want to multiplication in with SQL data You can choose below options
1. Use query entity or Query rule to get the data from table and handle multiplication in Appian
2. If you want to use 'Query Database' node then first get the column value from table and then do multiplication logic in appian (to be specific use apply function in data output tab of Query database node)
Note: - Not recommended if number of rows returned is large
3. You can also use view or store procedure, but then you have to maintain 2 extra data base object and CDT and they have their own drawbacks
Thanks
Ajinkya
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
ajinkyab277
Certified Lead Developer
over 9 years ago
Hi Nick
You cannot use * in SQl statement box, But if you want to multiplication in with SQL data You can choose below options
1. Use query entity or Query rule to get the data from table and handle multiplication in Appian
2. If you want to use 'Query Database' node then first get the column value from table and then do multiplication logic in appian (to be specific use apply function in data output tab of Query database node)
Note: - Not recommended if number of rows returned is large
3. You can also use view or store procedure, but then you have to maintain 2 extra data base object and CDT and they have their own drawbacks
Thanks
Ajinkya
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data