<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>achieving &amp;#39;select DISTINCT&amp;#39;</title><link>https://community.appian.com/discussions/f/user-interface/9839/achieving-select-distinct</link><description>Hello everybody, I have a CDT/Table &amp;#39;assets&amp;#39; with the following structure: idasset (primary,unique) typeofasset : text manufacturer : text model : text Now I would realize the following query (to be used in a form): select distinct typeofasset from assets</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: achieving 'select DISTINCT'</title><link>https://community.appian.com/thread/43554?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2017 15:35:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:34dcd5a6-a1fe-43da-b097-d5c264797267</guid><dc:creator>Raj Yadla</dc:creator><description>Grouping using the queryAggregationColumn() also gives distinct values&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: achieving 'select DISTINCT'</title><link>https://community.appian.com/thread/43420?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 23:52:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2dacf0b-09ad-486d-8446-b30b24ef3d50</guid><dc:creator>kumara0002</dc:creator><description>Hi Paolo, i would suggest to use executestored procedure(either smart service or function) if the volume of data is high. a!queryEntity() has limitation when the volume is high. Your workaround is correct.distinct was deprecated from 7.x versions of appian and union() is the workaround left.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: achieving 'select DISTINCT'</title><link>https://community.appian.com/thread/43419?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 23:51:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e60a7a2-3b63-4412-9439-583d21c33fe1</guid><dc:creator>jasmins</dc:creator><description>Hi paolos , you can use rule!APN_distinct(local!assetsAvailables.data)  directly ,it will return distinct elements from local!assetsAvailables.data array .&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: achieving 'select DISTINCT'</title><link>https://community.appian.com/thread/43393?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 18:09:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f24526d-2647-4469-bd5e-5826b2e658a2</guid><dc:creator>reginaldm377</dc:creator><description>If its the latter, then what the others have posted will be the solution.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: achieving 'select DISTINCT'</title><link>https://community.appian.com/thread/43392?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 17:22:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e26d4bc-3f41-48f5-8d61-7af2df706c69</guid><dc:creator>reginaldm377</dc:creator><description>Possibly an unnecessary question, but for clarification purposes, are you trying to return rows of data that contain only unique values in the Asset Type field, or are you simply wanting to return the name and count (for example) of unique asset types?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: achieving 'select DISTINCT'</title><link>https://community.appian.com/thread/43386?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 16:04:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79431ac2-d6a6-4ffe-b911-3046f7b95115</guid><dc:creator>mognons</dc:creator><description>Hi Paolo, you could also prepare an SQL view that implements your SELECT DISTINCT... statement, then map the view to a proper CDT and use Appian Query Rules (or a!queryEntity) to get the expected results.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: achieving 'select DISTINCT'</title><link>https://community.appian.com/thread/43385?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 15:50:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4970b626-4c6b-4f15-9833-0af2e915c26c</guid><dc:creator>Mike Schmitt</dc:creator><description>I was about to say - this definitely sounds like something queryAggregation might be able to handle.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: achieving 'select DISTINCT'</title><link>https://community.appian.com/thread/43381?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2017 12:17:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a74d703c-3c79-4174-9c69-2646edf2a48c</guid><dc:creator>Puspendu Pal</dc:creator><description>Hello Paolo,&lt;br /&gt;&lt;br /&gt;Please refer the URL  below :&lt;br /&gt;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/17.1/Query_Recipes.html"&gt;docs.appian.com/.../Query_Recipes.html&lt;/a&gt; . Look at the section - &amp;quot;Get the Distinct Values of a Field&amp;quot;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>