<?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>how to make 2 columns in DB as primary key</title><link>https://community.appian.com/discussions/f/general/8940/how-to-make-2-columns-in-db-as-primary-key</link><description>how to make 2 columns in DB as primary key . There is a table with columns , fundid, business effective month, profit, loss and other fields. I have made fundid as primary key. But I should make fundid and business effective month , both together as primary</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to make 2 columns in DB as primary key</title><link>https://community.appian.com/thread/39792?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 19:27:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4879dd93-b471-4b53-ae52-3c9f37045e45</guid><dc:creator>sparshs</dc:creator><description>I agree with venusaikumarc , you make changes in your database to put up a additional column in your table which will have data from both the columns and that you can define as your primary key. I think that should work.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make 2 columns in DB as primary key</title><link>https://community.appian.com/thread/39760?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 12:54:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b700d6c4-f393-4962-b66e-c6ab9dcdcaa1</guid><dc:creator>aloks0189</dc:creator><description>@priyankav Yes you are right, we can define more than one column as Primary using @Id, and Combined Primary key is a combination of two or more columns in a table that can be used to uniquely identify each row in the table&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make 2 columns in DB as primary key</title><link>https://community.appian.com/thread/39759?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 12:40:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aaefa5a5-4d2c-4948-8291-3c34ffef90b9</guid><dc:creator>Priyanka</dc:creator><description>I tried @ Id for both columns and able to see the primary key image on both of them . Hope that is the combined primary key&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make 2 columns in DB as primary key</title><link>https://community.appian.com/thread/39754?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 11:05:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:88303724-6ceb-47cc-b8cb-f3561155000c</guid><dc:creator>Venu</dc:creator><description>@Priyanka,&lt;br /&gt;You can create additional column to save combination values of fundid and business effective month like FUN001_Jan, Make that additional column as PK in your CDT.&lt;br /&gt;From DB side Additional Column should be Unique Key, PK is  (fundid and business effective month).&lt;br /&gt;&lt;br /&gt;https://forum.appian.com/suite/help/16.3/Database_Schema_Best_Practices.html#composite-keys&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make 2 columns in DB as primary key</title><link>https://community.appian.com/thread/39753?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 11:01:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38574a2d-f35d-4f38-9275-1926bdc008ff</guid><dc:creator>aloks0189</dc:creator><description>@priyankav Did you try repeating @Id Annotation for both&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>