<?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>In CDT How to handle the table without having primary key?</title><link>https://community.appian.com/discussions/f/general/34148/in-cdt-how-to-handle-the-table-without-having-primary-key</link><description>If a database table do not have any primary key, then how we can handle this table in Appian CDT?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: In CDT How to handle the table without having primary key?</title><link>https://community.appian.com/thread/130119?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 18:00:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d34fe9fb-6f17-4d99-a4ae-35882b79a7d9</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="62386" url="~/discussions/f/general/34148/in-cdt-how-to-handle-the-table-without-having-primary-key"]then how we can handle this table in Appian [/quote]
&lt;p&gt;By updating it to add a Primary Key column.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In CDT How to handle the table without having primary key?</title><link>https://community.appian.com/thread/130063?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 09:15:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2baaee31-7cf7-43b6-a4ff-6e0be82ff4cf</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Why do you have one table without a primary key? Add it with autoincrement at least , and you will we able to create your cdt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In CDT How to handle the table without having primary key?</title><link>https://community.appian.com/thread/130047?ContentTypeID=1</link><pubDate>Sun, 25 Feb 2024 15:36:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76a66ff1-676d-4ea4-be27-a5e575f87e91</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;If you are going to update the table, then why not just add an auto-increment id column?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In CDT How to handle the table without having primary key?</title><link>https://community.appian.com/thread/130046?ContentTypeID=1</link><pubDate>Sun, 25 Feb 2024 15:33:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d033d8a4-6fc1-48b3-aa66-0619d3669311</guid><dc:creator>ankitas209</dc:creator><description>&lt;p&gt;We cannot update data in view, data should be update in the Table then how we can update the table?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In CDT How to handle the table without having primary key?</title><link>https://community.appian.com/thread/130045?ContentTypeID=1</link><pubDate>Sun, 25 Feb 2024 14:33:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d72f192a-90fc-4a90-8d37-b7526d6bcf1e</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;If you are creating a view, simply add a new column for the artificial or composite key.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CREATE VIEW my_view AS
SELECT col1, col2, CONCAT(col1, &amp;#39;_&amp;#39;, col2) AS composite_key
FROM my_table;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In CDT How to handle the table without having primary key?</title><link>https://community.appian.com/thread/130044?ContentTypeID=1</link><pubDate>Sun, 25 Feb 2024 14:01:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a042b504-a989-49a2-a453-d5e957217468</guid><dc:creator>ankitas209</dc:creator><description>&lt;p&gt;How can we update the data in that table if we are creating the view?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In CDT How to handle the table without having primary key?</title><link>https://community.appian.com/thread/130043?ContentTypeID=1</link><pubDate>Sun, 25 Feb 2024 13:10:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:14445e4d-90e7-4fed-931d-0909fcaabdb8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Not. Appian requires a primary key. If you do not have one, you could create a view that adds an artificial PK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>