<?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>One to One, One to Many, Many to One &amp;amp; Many to Many relation in CDT</title><link>https://community.appian.com/discussions/f/new-to-appian/19785/one-to-one-one-to-many-many-to-one-many-to-many-relation-in-cdt</link><description>I am a new comer in Appian, please help me with steps to implement One to One &amp;amp; One to Many relations.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: One to One, One to Many, Many to One &amp; Many to Many relation in CDT</title><link>https://community.appian.com/thread/77411?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 04:26:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:490eacdf-8535-4177-addc-508bd43f69fc</guid><dc:creator>Dude</dc:creator><description>&lt;table class="appianTable"&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;CDT Relationship&lt;/th&gt;
&lt;th&gt;Recommended Design&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;One-to-One&lt;/td&gt;
&lt;td&gt;Nested&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Many-to-One&lt;/td&gt;
&lt;td&gt;Nested&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One-to-Many&lt;/td&gt;
&lt;td&gt;Flat&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Many-to-Many&lt;/td&gt;
&lt;td&gt;Flat&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One to One, One to Many, Many to One &amp; Many to Many relation in CDT</title><link>https://community.appian.com/thread/77396?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 19:34:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dbc2ddef-0f83-4383-9f25-df6f5d4d4ceb</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Kara&amp;#39;s suggestions are great - there&amp;#39;s a lot of good content on Appian Academy that describes how to use different relationships. I also like this page in the docs on &lt;a href="https://docs.appian.com/suite/help/latest/cdt_design_guidance.html"&gt;CDT design guidance&lt;/a&gt;&amp;nbsp;that describes how to set up different relationship types using CDTs.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also curious - do you have a use case in mind or are you just looking for general guidance? If you have a use case in mind, we can provide a bit more information if you describe your scenario.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One to One, One to Many, Many to One &amp; Many to Many relation in CDT</title><link>https://community.appian.com/thread/77392?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 14:54:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a31a4987-f9d4-4ac1-a7a3-07363a2e3023</guid><dc:creator>kara.peeler</dc:creator><description>&lt;p&gt;Manage Data Using Custom Data Types link:&amp;nbsp;&lt;a href="https://academy.appian.com/#/online-courses/80d231bb-c1c1-4d4e-8471-d190a6f13070"&gt;https://academy.appian.com/#/online-courses/80d231bb-c1c1-4d4e-8471-d190a6f13070&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One to One, One to Many, Many to One &amp; Many to Many relation in CDT</title><link>https://community.appian.com/thread/77391?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 14:53:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d3248d8-a793-4629-b4e8-5cd1e8a800c6</guid><dc:creator>kara.peeler</dc:creator><description>&lt;p&gt;There are a number of resources available on this topic -- both via online training and documentation. You might start with &amp;quot;Database Design Basics:&amp;quot;&amp;nbsp;&lt;a href="https://academy.appian.com/#/online-courses/62e52c7b-cd92-457a-abd0-98e5f1a81142"&gt;https://academy.appian.com/#/online-courses/62e52c7b-cd92-457a-abd0-98e5f1a81142&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Next -- Manage Data Using Custom Data Types:&amp;nbsp;&lt;a href="https://academy.appian.com/#/online-courses/80d231bb-c1c1-4d4e-8471-d190a6f13070"&gt;academy.appian.com/&lt;/a&gt;, but I recommend this course be taken in sequence through the Appian Developer learning path.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And then for a more advanced, but more in-depth view:&amp;nbsp;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;a style="font-family:inherit;" title="Design Advanced CDTs for RDMS Schema Management" href="https://academy.appian.com/#/online-courses/ce361d9a-79ba-42d0-bc10-a4279d46e874"&gt;https://academy.appian.com/#/online-courses/ce361d9a-79ba-42d0-bc10-a4279d46e874&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you prefer docs -- this is a great article:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/20.3/CDT_Relationships.html"&gt;docs.appian.com/.../CDT_Relationships.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: One to One, One to Many, Many to One &amp; Many to Many relation in CDT</title><link>https://community.appian.com/thread/77386?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 13:26:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6794d5b8-311e-45ab-ae0a-4f843fade10c</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;One to One is simply achieved by one CDT or the other having a reference to the other CDT, most likely the reference of the CDT will be the ID or primary key.&amp;nbsp; In a one to one relationship it doesn&amp;#39;t really matter which one is the one with the reference to the other.&amp;nbsp; If you make one of the members of the CDT a CDT itself (nesting), Appian will automatically generate the foreign key reference.&lt;/p&gt;
&lt;p&gt;If there&amp;#39;s a Many to One relationship, meaning the parent table with the reference can have multiple rows referring to the same row of the child table, the reference is stored in the parent.&amp;nbsp; Appian will automatically make the references.&amp;nbsp; In essence, you just nest a singular CDT in the parent CDT and Appian won&amp;#39;t really care if some references are the same.&lt;/p&gt;
&lt;p&gt;If there&amp;#39;s a One to Many relationship, which occurs when you nest a list of CDT in a parent CDT, then the reference to the parent is stored in each of the children.&amp;nbsp; Appian will do this automatically.&lt;/p&gt;
&lt;p&gt;If there&amp;#39;s a Many to Many relationship, that generally requires a separate lookup table [id, fk 1, fk 2], which database experts should more than likely build this directly in the DBMS and configure the CDTs afterward.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>