<?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>Create a view by joining two CDTs</title><link>https://community.appian.com/discussions/f/data/13959/create-a-view-by-joining-two-cdts</link><description>Hi Appian community, I want to do some queries that require filtering two different CDTs. I heard that to do this I should create a view (a view of the data that joins both the CDTs in admin). How do I do this in Appian? Many thanks, Eric</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Create a view by joining two CDTs</title><link>https://community.appian.com/thread/63849?ContentTypeID=1</link><pubDate>Sat, 05 Jan 2019 14:06:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc992012-e417-491f-bbb2-7401c18f88c3</guid><dc:creator>rp_balaji</dc:creator><description>Hi Chandu,&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Balaji.R&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a view by joining two CDTs</title><link>https://community.appian.com/thread/63844?ContentTypeID=1</link><pubDate>Sat, 05 Jan 2019 07:05:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5112a37-ce5b-4b64-8006-8ab0b04fc337</guid><dc:creator>chandu</dc:creator><description>Hi Balaji,&lt;br /&gt;
We can  use @Table annotation for table or view. for more info on it please go through,&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/17.2/Mapping_CDTs_to_Pre-defined_Database_Tables.html"&gt;docs.appian.com/.../Mapping_CDTs_to_Pre-defined_Database_Tables.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a view by joining two CDTs</title><link>https://community.appian.com/thread/63839?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 14:40:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dca23fd3-436b-4e32-a189-c11876a7dac3</guid><dc:creator>rp_balaji</dc:creator><description>Hi Sindhu,&lt;br /&gt;
&lt;br /&gt;
While creating CDT for the view in DB what is the annotation which we need to use in CDT XML schema which will differentiate the VIEW from a normal TABLE CDT.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Balaji.R&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a view by joining two CDTs</title><link>https://community.appian.com/thread/63398?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 11:23:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee763a5f-0584-4c4b-80d9-fee7f4ca902e</guid><dc:creator>satheeshm0002</dc:creator><description>its correct&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a view by joining two CDTs</title><link>https://community.appian.com/thread/63394?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 09:05:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48c1432d-8c51-4840-b81f-1ec429a32dc4</guid><dc:creator>sindhug</dc:creator><description>its a typo, its Query entity only not query rule&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a view by joining two CDTs</title><link>https://community.appian.com/thread/63393?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 08:58:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83a49c48-9319-438a-b3bb-f4308bea9cc9</guid><dc:creator>chandu</dc:creator><description>Sindu, &amp;quot;Then create a query rule referring to that DS to fetch the data.&amp;quot; May be you forget that Query Entity is more faster than Query Rule&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a view by joining two CDTs</title><link>https://community.appian.com/thread/63385?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 04:35:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80cd1355-5d4a-4a7d-b2b5-82d9371ec359</guid><dc:creator>sindhug</dc:creator><description>Hi Erics,&lt;br /&gt;
&lt;br /&gt;
As per the Appian best practices, its always recommended to create a view(will all data manipulations) and then create a CDT that holds  the view structure, publish it in Data store .  Then create a query rule referring to that  DS to fetch the data.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Sindhu&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a view by joining two CDTs</title><link>https://community.appian.com/thread/63374?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 22:02:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6295eb67-d094-4f4e-bc92-68476e1f5300</guid><dc:creator>sahithip120</dc:creator><description>Hi Eric,&lt;br /&gt;
Creating view in the appian database and querying the data is recommended&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a view by joining two CDTs</title><link>https://community.appian.com/thread/63368?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 16:22:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:513ce4ea-dd75-48d8-aa9f-557a55c45b7c</guid><dc:creator>pratiksha nawale</dc:creator><description>You can use the joincdt function mentioned by chandu in below comments, However it is recommended to create a view with join you required in database and created cdt for that view (Note: As Join is the database servers core functionality they execute faster there)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a view by joining two CDTs</title><link>https://community.appian.com/thread/63365?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 14:06:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b73efede-69db-4081-b6b6-0bb90c5dfdc6</guid><dc:creator>chandu</dc:creator><description>Hi Eric, If you get the data from DB for those CDTs and you can create a view joining those two tables.&lt;br /&gt;
Else if you want to handle these joins in Appian without creating view then please use the CDT manipulation Plugin&lt;br /&gt;
&lt;a href="https://community.appian.com/b/appmarket/posts/cdt-manipulation"&gt;community.appian.com/.../cdt-manipulation&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>