<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I concatenate two fields having integer as data type in a SQL database table? in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793500#M9207</link>
    <description>&lt;P&gt;Thanks for your time. But using the SELECT command would only make it effective for that command. I would want it my table in the database to be programmed with that. I want the studentCode field to be affected by that command whenever a record or an update is made. How do I go about it please without using a SELECT statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 20:26:55 GMT</pubDate>
    <dc:creator>CEO</dc:creator>
    <dc:date>2021-07-28T20:26:55Z</dc:date>
    <item>
      <title>How can I concatenate two fields having integer as data type in a SQL database table?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793467#M9204</link>
      <description>&lt;P&gt;Hello, I am creating a table and I would want two particular fields to concatenate to form a 3rd field. Take for instance:&lt;/P&gt;&lt;P&gt;___________________________________________&lt;/P&gt;&lt;P&gt;class int not null,&lt;/P&gt;&lt;P&gt;studentNo int unique IDENTITY(100000,1) Primary Key,&lt;/P&gt;&lt;P&gt;StudentCode...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_____________________________________________&lt;/P&gt;&lt;P&gt;Class field will be 3-digits integer. StudentNo will be automatically generated, starting from 10,000 StudentCode (I want it to contain the class 3-digits for each student and also the studentNo. It will start with the 3-digits of the class. i.e to concatenate the class value and the studentNo value) I try as much to explain because I want explicit suggestion. If you are proficient with database (MySql or Microsoft Sql), and you know about this, then kindly help. Please help with a line or lines of codes.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:31:00 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793467#M9204</guid>
      <dc:creator>CEO</dc:creator>
      <dc:date>2021-07-28T19:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I concatenate two fields having integer as data type in a SQL database table?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793474#M9205</link>
      <description>&lt;P&gt;In Alteryx you can wrap a column with ToString([ColumnName]) to effectively cast it to a string. You can also use a select tool if you want to modify the column data type.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:40:32 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793474#M9205</guid>
      <dc:creator>BrandonB</dc:creator>
      <dc:date>2021-07-28T19:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I concatenate two fields having integer as data type in a SQL database table?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793479#M9206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/262498"&gt;@CEO&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do this in two was.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;Concatenate within Alteryx&lt;/STRONG&gt;:- Please refer to the attached sample workflow on how to do this. Within the workflow i have used a Text Input just for showcasing. You will need to replace this with your input to the actual database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &lt;STRONG&gt;Concatenate using SQL:-&amp;nbsp;&lt;/STRONG&gt;You can do this by executing a query similar to one described below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;SELECT CONCAT(c.Class, ':', c.studentNo) AS studentCode,&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;c.*&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;FROM `tablename` c;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jagdeesh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 19:44:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793479#M9206</guid>
      <dc:creator>JagdeeshN</dc:creator>
      <dc:date>2021-07-28T19:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I concatenate two fields having integer as data type in a SQL database table?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793500#M9207</link>
      <description>&lt;P&gt;Thanks for your time. But using the SELECT command would only make it effective for that command. I would want it my table in the database to be programmed with that. I want the studentCode field to be affected by that command whenever a record or an update is made. How do I go about it please without using a SELECT statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:26:55 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793500#M9207</guid>
      <dc:creator>CEO</dc:creator>
      <dc:date>2021-07-28T20:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I concatenate two fields having integer as data type in a SQL database table?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793502#M9208</link>
      <description>&lt;P&gt;@jagdeeshN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...and I will appreciate if you kindly write the line of code as if you're teaching a beginner, so I can study it and understand. I don't understand what you wrote there&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:29:52 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793502#M9208</guid>
      <dc:creator>CEO</dc:creator>
      <dc:date>2021-07-28T20:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I concatenate two fields having integer as data type in a SQL database table?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793503#M9209</link>
      <description>&lt;P&gt;I want to write the code in my database server, not in my application code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 20:30:58 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793503#M9209</guid>
      <dc:creator>CEO</dc:creator>
      <dc:date>2021-07-28T20:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I concatenate two fields having integer as data type in a SQL database table?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793807#M9212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/262498"&gt;@CEO&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below link. It describes how to create virtual calculated columns within a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlshack.com/an-overview-of-computed-columns-in-sql-server/" target="_blank"&gt;https://www.sqlshack.com/an-overview-of-computed-columns-in-sql-server/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jagdeesh&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 12:17:07 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/How-can-I-concatenate-two-fields-having-integer-as-data-type-in/m-p/793807#M9212</guid>
      <dc:creator>JagdeeshN</dc:creator>
      <dc:date>2021-07-29T12:17:07Z</dc:date>
    </item>
  </channel>
</rss>

