<?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>Does the syntax changes if  you are using a database &amp;quot;view&amp;quot; as apposed</title><link>https://community.appian.com/discussions/f/rules/2634/does-the-syntax-changes-if-you-are-using-a-database-view-as-apposed</link><description>Does the syntax changes if you are using a database &amp;quot;view&amp;quot; as apposed to a &amp;quot;table&amp;quot; in a query rule? I have a CDT based on a Database view. I created a data store from it. I then created a Query Rule. Everything seems to be fine so far. I then user the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Does the syntax changes if  you are using a database "view" as apposed</title><link>https://community.appian.com/thread/9171?ContentTypeID=1</link><pubDate>Tue, 06 May 2014 21:34:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7dfa47cc-ad4e-451a-9b61-e9c144072e51</guid><dc:creator>jesse.triplett</dc:creator><description>Yes I only meant declare the PK in the CDT, which it appears was done. In the data in the view, is applicationRTO_ID unique or are there duplicate entries?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the syntax changes if  you are using a database "view" as apposed</title><link>https://community.appian.com/thread/9170?ContentTypeID=1</link><pubDate>Tue, 06 May 2014 21:30:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a0c1104-b074-4ed1-86e2-92ac2db94c73</guid><dc:creator>robr</dc:creator><description>I have a column I can use but I didn&amp;#39;t think, within a database, I could identify  a PK within a view.  The XSD that creates the CDT has this in it:&lt;br /&gt;&lt;br /&gt;@Table(name=&amp;quot;ApplicationRTOsView&amp;quot;)&lt;br /&gt;      &amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt;    &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;    &amp;lt;xsd:sequence&amp;gt;&lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;applicationRTO_ID&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:int&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt;          &amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;&lt;br /&gt;            @Column(name=&amp;quot;applicationRTO_ID&amp;quot;, nullable=false)&lt;br /&gt;            @Id&lt;br /&gt;            @GeneratedValue&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the syntax changes if  you are using a database "view" as apposed</title><link>https://community.appian.com/thread/9167?ContentTypeID=1</link><pubDate>Tue, 06 May 2014 19:03:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a1f2600-c760-4e0d-9649-b4a9560cdff5</guid><dc:creator>jesse.triplett</dc:creator><description>Did you declare a primary key (using @Id JPA Annotation)? Does the view have a unique column that could act as the Id? T&lt;br /&gt;This order by error is almost always a result of that. If your view does not have a unique column, consider concatenating two or more columns to create one.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does the syntax changes if  you are using a database "view" as apposed</title><link>https://community.appian.com/thread/9145?ContentTypeID=1</link><pubDate>Tue, 06 May 2014 00:28:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f39f193-658d-4117-be04-246f05c919bd</guid><dc:creator>priyal.patel</dc:creator><description>Looking at your logs might provide you a little bit more insight! Can you tell us what the logs say?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>