<?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>Map CDT value Decimal to a column in SQL</title><link>https://community.appian.com/discussions/f/rules/20788/map-cdt-value-decimal-to-a-column-in-sql</link><description>Hi, 
 I have Question on adding a new field with Number(decimal) as type in CDT by using XSD Uploading, i am in confuse situation where what will the following values for Decimal?? is it decimal or float or double in XSD file 
 &amp;lt;/xsd:element&amp;gt; &amp;lt;xsd:element</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Map CDT value Decimal to a column in SQL</title><link>https://community.appian.com/thread/80989?ContentTypeID=1</link><pubDate>Sun, 18 Apr 2021 09:59:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:834d9311-4de4-4fe7-8d77-006250aee303</guid><dc:creator>John Pang</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/sunilv"&gt;sunilv&lt;/a&gt;, you need to use double or float to represent a decimal datatype in the XSD file. There are size and length constraints for float (4 bytes, 7 digits) and double (8 bytes, 15-16 digits). Length does not need to be mentioned in this case. The column in the database also needs to be of the same name and datatype.&lt;/p&gt;
&lt;p&gt;Here is how it should look like:&lt;/p&gt;
&lt;p&gt;&amp;lt;xsd:element name=&amp;quot;remunerationAmount&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:double&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;@Column(name=&amp;quot;remunerationAmount&amp;quot;, columnDefinition=&amp;quot;DOUBLE&amp;quot;)&amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt; &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt; &amp;lt;/xsd:element&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>