<?xml-stylesheet type="text/xsl" href="https://communities.bentley.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>Concatenating Attributes in an Environment</title><link>/other/old_site_member_blogs/bentley_employees/b/jo_wests_blog/posts/concatenating-attributes-in-an-environment</link><description>A simple way to concatenate or combine two or more attributes in an environment would be to use the update option of the attribute properties. For example, let&amp;#39;s say the environment has two varchar attributes attr1 and attr2 and we want to combine then</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Concatenating Attributes in an Environment</title><link>https://communities.bentley.com/other/old_site_member_blogs/bentley_employees/b/jo_wests_blog/posts/concatenating-attributes-in-an-environment</link><pubDate>Fri, 15 May 2009 17:50:02 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:984ebc56-ef46-4c9b-96a6-5537ee1e1b13</guid><dc:creator>Kestas</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;One way of getting rid of '-' for SQL Server:&lt;/p&gt;
&lt;p&gt;select case when len('$EDIT#attr1$') * len('$EDIT#attr2$') &amp;gt; 0 &amp;nbsp;then '$EDIT#attr1$-$EDIT#attr2$'else '$EDIT#attr1$$EDIT#attr2$' end &lt;/p&gt;
&lt;p&gt;and for Oracle:&lt;/p&gt;
&lt;p&gt;select case when nvl(length(trim('$EDIT#attr1$')),0) * nvl(length(trim('$EDIT#attr2$')),0) &amp;gt; 0 then '$EDIT#attr1$-$EDIT#attr2$' else '$EDIT#attr1$$EDIT#attr2$' end from dual&lt;/p&gt;
&lt;img src="https://communities.bentley.com/aggbug?PostID=29622&amp;AppID=31477&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>