<?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>Combine two database tables</title><link>https://community.appian.com/discussions/f/data/24129/combine-two-database-tables</link><description>Hi Readers, 
 I have two tables 
 Table-A with columns:- ID_A, Job_Role, Company_Name Table-B with columns:- Member_ID, Name, PhoneNumber, ID_A 
 which are related as one to many relations 
 I have created record type for different these tables and added</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Combine two database tables</title><link>https://community.appian.com/thread/119792?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 15:39:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c871292b-f58f-491c-9b37-dd0c509f0f6c</guid><dc:creator>Aby Amores</dc:creator><description>&lt;p&gt;Yea you&amp;#39;re right. Thanks for your response!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combine two database tables</title><link>https://community.appian.com/thread/119764?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 11:20:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f319a0d4-1809-4def-9d1c-8e4c5b4c59c9</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;If you want to have a synced Record (and be able to create relationships), I&amp;#39;d say that it&amp;#39;s the only way to do it.&lt;/p&gt;
&lt;p&gt;Otherwise, if you don&amp;#39;t need synced Record Types, you could also create a view and just create a non synced Record Type against the view.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combine two database tables</title><link>https://community.appian.com/thread/119724?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 02:58:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:de49eec9-8886-4fd7-b9d0-c18eaed93163</guid><dc:creator>Aby Amores</dc:creator><description>&lt;p&gt;Hello there! I have a similar scenario. I have two tables: Tasks A and Tasks B and I need a Consolidated Task record to show the columns both tables have in common.&lt;/p&gt;
&lt;p&gt;One option is to create a DB View with the subset of columns from each table as&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;(Create view ConsolidatedTasks as Select column1, column2 from TasksA UNION&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;Select column1, column2 from TasksB)&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but then I&amp;#39;ll have to create an API and integration to retrieve the data for the View as the source for the record type, right? It feels like over complicating it. Any suggestions for this scenario?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combine two database tables</title><link>https://community.appian.com/thread/93094?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 21:56:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:953567d4-ab36-4552-b2c2-d27b4fe57c9c</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Sure this is possible, but in general I wouldn&amp;#39;t recommend doing this in most scenarios - using related records is a lot easier to setup and change, and it doesn&amp;#39;t require any database experience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combine two database tables</title><link>https://community.appian.com/thread/93045?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 06:48:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f87506a6-f89d-485c-9e71-097948860113</guid><dc:creator>vinaykumar</dc:creator><description>&lt;p&gt;Create a record Type object for that view as you do for a table and then use it in the grid as required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combine two database tables</title><link>https://community.appian.com/thread/93044?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 06:41:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7064690c-8f27-40ce-843e-442880b56d81</guid><dc:creator>vaddhicharanc0001</dc:creator><description>&lt;p&gt;&lt;span style="font-family:&amp;#39;comic sans ms&amp;#39;, &amp;#39;comic sans&amp;#39;, sans-serif;"&gt;We can create a view from multiple tables and how can we use that ??&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combine two database tables</title><link>https://community.appian.com/thread/93041?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 05:52:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ecba288-864f-42df-8084-47db02e3361c</guid><dc:creator>vinaykumar</dc:creator><description>&lt;p&gt;Yes &lt;a href="/members/vaddhicharanc0001"&gt;vaddhicharanc0001&lt;/a&gt;, it is possible. Apart from the above mentioned solutions, you can even create a view in database as per the requirement.&lt;/p&gt;
&lt;p&gt;And create a record to retrieve data from that view. Hope this helps !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combine two database tables</title><link>https://community.appian.com/thread/93021?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 16:43:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7942541e-0c20-4d01-9011-815dd63c941c</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Since the grid you&amp;#39;re looking for has one row per member, I&amp;#39;d suggest making the record type for table B your source for the grid. Then, you can reference fields from table a by using relationship references. For example, you can select the job role by referencing the field recordType!A.relationships.B.jobRole.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re still having troubles, can you post your code and any errors / issues that are occurring?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combine two database tables</title><link>https://community.appian.com/thread/93003?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 09:51:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bcb381cb-46b3-4b71-b65e-6269e4c3b2cf</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Yes. That is possible.&amp;nbsp;&lt;br /&gt;In a local variable, you the query record type and use the output in the grid.&amp;nbsp;&lt;br /&gt;You will be able to access the related fields of the record by accessing its relationships. ie. recordType!Member.relationships.relatedRecord.fields.fieldName&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>