<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>SQL Learning Center - GoldMine Comments</title>
	<link>http://www.crmsql.com</link>
	<description>Use SQL queries to get answers from GoldMine</description>
	<pubDate>Fri, 30 Jul 2010 07:48:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on Primary Email Address by: Doug Steinschneider</title>
		<link>http://www.crmsql.com/?p=4#comment-8</link>
		<pubDate>Thu, 22 May 2008 20:30:48 +0000</pubDate>
		<guid>http://www.crmsql.com/?p=4#comment-8</guid>
					<description>Thanks good tip - added the change</description>
		<content:encoded><![CDATA[	<p>Thanks good tip - added the change
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Primary Email Address by: rverboven</title>
		<link>http://www.crmsql.com/?p=4#comment-2</link>
		<pubDate>Mon, 29 May 2006 08:54:30 +0000</pubDate>
		<guid>http://www.crmsql.com/?p=4#comment-2</guid>
					<description>This was absolutely great help, but..
The field cs.contsupref only contains the first 35 characters of the email address. The other 
characters are (unbelievably!) stored in cs.address1. Use the following query to always get
the complete address:
SELECT
c1.contact
,concat(cs.contsupref, cs.address1) AS EmailAddress
,c1.accountno
FROM
contact1 c1
JOIN contsupp cs
ON c1.accountno=cs.accountno
WHERE
cs.rectype = 'P'
AND cs.contact = 'E-mail Address'
AND cs.zip LIKE '_1__'</description>
		<content:encoded><![CDATA[	<p>This was absolutely great help, but..<br />
The field cs.contsupref only contains the first 35 characters of the email address. The other<br />
characters are (unbelievably!) stored in cs.address1. Use the following query to always get<br />
the complete address:<br />
SELECT<br />
c1.contact<br />
,concat(cs.contsupref, cs.address1) AS EmailAddress<br />
,c1.accountno<br />
FROM<br />
contact1 c1<br />
JOIN contsupp cs<br />
ON c1.accountno=cs.accountno<br />
WHERE<br />
cs.rectype = &#8216;P&#8217;<br />
AND cs.contact = &#8216;E-mail Address&#8217;<br />
AND cs.zip LIKE &#8216;_1__&#8217;
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
