<?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>Database related</title><link>https://community.appian.com/discussions/f/general/20180/database-related</link><description>I have one table say A, with location { delhi, patna, kanpur} and it&amp;#39;s location id is {1,2,3} . I also have another table say locationjourney in which a person xyz travels from location id 1 to 3 and another person abc from 2 to 3. Now I need to display</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Database related</title><link>https://community.appian.com/thread/78812?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 23:26:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62bf3e7e-01a1-41e8-ab51-5e8674aea4f6</guid><dc:creator>roopeshv</dc:creator><description>&lt;p&gt;I am assuming your second table contains 3 columns : personName, locationFromID and locationToID. There can be different ways to retrieve data and display it but easiest nd best would to create a view in DB and read it directly. Something like&lt;/p&gt;
&lt;p&gt;Table2 left join table1 on table2.locationFromID = Table1.ID&lt;/p&gt;
&lt;p&gt;Left table1 on table2.locationToID = table1.id&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Database related</title><link>https://community.appian.com/thread/78789?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 10:09:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a9842b7-2950-4ed9-9884-a488d2e1c45f</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;What is your actual question? Is it &amp;quot;How does my data model need to be designed?&amp;quot; Or is it &amp;quot;How do I retrieve the relevant data from the tables and display it?&amp;quot;. Or something else?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>