<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 9 SQL Parameters: Load-Lookup Love Letter</title>
	<atom:link href="http://peoplesoftsqr.com/index.php/2009/03/9-sql-parameters-load-lookup-love-letter/feed/" rel="self" type="application/rss+xml" />
	<link>http://peoplesoftsqr.com/index.php/2009/03/9-sql-parameters-load-lookup-love-letter/</link>
	<description>When Peoplebooks Is Not Enough</description>
	<lastBuildDate>Mon, 16 Aug 2010 16:52:22 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/9-sql-parameters-load-lookup-love-letter/comment-page-1/#comment-708</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Fri, 19 Jun 2009 23:14:02 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=206#comment-708</guid>
		<description>Good start, but I should have told you that PS_PERS_NID stores the NATIONAL_ID without special characters.  That would have simplified your &lt;strong&gt;where&lt;/strong&gt; clause.  Sorry.</description>
		<content:encoded><![CDATA[<p>Good start, but I should have told you that PS_PERS_NID stores the NATIONAL_ID without special characters.  That would have simplified your <strong>where</strong> clause.  Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/9-sql-parameters-load-lookup-love-letter/comment-page-1/#comment-707</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Fri, 19 Jun 2009 23:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=206#comment-707</guid>
		<description>Part of the brain teaser is to think about what can go wrong in data entry.  You&#039;ve identified the same ones I did; a single wrong character (digit, letter, or special), transposed digits (54 instead of 45).  The only other case I&#039;d suggest is a missing digit; eight characters instead of nine.  Also, I assumed that there would not be dashes.</description>
		<content:encoded><![CDATA[<p>Part of the brain teaser is to think about what can go wrong in data entry.  You&#8217;ve identified the same ones I did; a single wrong character (digit, letter, or special), transposed digits (54 instead of 45).  The only other case I&#8217;d suggest is a missing digit; eight characters instead of nine.  Also, I assumed that there would not be dashes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sundeep Kumar</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/9-sql-parameters-load-lookup-love-letter/comment-page-1/#comment-699</link>
		<dc:creator>Sundeep Kumar</dc:creator>
		<pubDate>Fri, 19 Jun 2009 18:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=206#comment-699</guid>
		<description>If the scenario is having special characters in the SSN then 
Let $BLANK = &#039;&#039;
Let $SSN_NOSPLCHR = TRANSLATE($SSN,&#039;./-,&#039;,$BLANK)
Do Validate-SSN

Begin-Procedure Validate-SSN
Let $FOUND = &#039;N&#039;
Begin-SELECT
NATIONAL_ID
     Let $FOUND = &#039;Y&#039;
FROM PS_PERS_NID
WHERE REPLACE(TRANSLATE(NATIONAL_ID,&#039;./-,&#039;,&#039;    &#039;),&#039; &#039;,&#039;&#039;) = $SSN_NOSPLCHR 
End-SELECT

IF $FOUND = &#039;N&#039;
 Show $SSN &#039; Does Not exist in the Database
End-IF

End-Procedure Validate-SSN</description>
		<content:encoded><![CDATA[<p>If the scenario is having special characters in the SSN then<br />
Let $BLANK = &#8221;<br />
Let $SSN_NOSPLCHR = TRANSLATE($SSN,&#8217;./-,&#8217;,$BLANK)<br />
Do Validate-SSN</p>
<p>Begin-Procedure Validate-SSN<br />
Let $FOUND = &#8216;N&#8217;<br />
Begin-SELECT<br />
NATIONAL_ID<br />
     Let $FOUND = &#8216;Y&#8217;<br />
FROM PS_PERS_NID<br />
WHERE REPLACE(TRANSLATE(NATIONAL_ID,&#8217;./-,&#8217;,&#8217;    &#8216;),&#8217; &#8216;,&#8221;) = $SSN_NOSPLCHR<br />
End-SELECT</p>
<p>IF $FOUND = &#8216;N&#8217;<br />
 Show $SSN &#8216; Does Not exist in the Database<br />
End-IF</p>
<p>End-Procedure Validate-SSN</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sundeep Kumar</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/9-sql-parameters-load-lookup-love-letter/comment-page-1/#comment-698</link>
		<dc:creator>Sundeep Kumar</dc:creator>
		<pubDate>Fri, 19 Jun 2009 18:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=206#comment-698</guid>
		<description>I need a clarification regarding this brain teaser
When you say typo with the SSN in the file did you mean having some special characters, spaces in the SSN. Or is it some thing like the digits in the SSN being jumbled like 123-45-6789 123-54-6789</description>
		<content:encoded><![CDATA[<p>I need a clarification regarding this brain teaser<br />
When you say typo with the SSN in the file did you mean having some special characters, spaces in the SSN. Or is it some thing like the digits in the SSN being jumbled like 123-45-6789 123-54-6789</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/9-sql-parameters-load-lookup-love-letter/comment-page-1/#comment-324</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Fri, 01 May 2009 04:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=206#comment-324</guid>
		<description>There are object-oriented databases and multidimensional databases.  They might not use SQL.  There is Open Insight from Revelation Software, which I think of as a hierarchical database.  It doesn&#039;t use SQL.  There may be other relational databases that don&#039;t use SQL.  SQR for DDO uses DDO instead of SQL.  I&#039;ve heard of all these things, but I&#039;ve worked almost exclusively with Oracle (therefore SQL) for the past 11 years.  Can anyone else comment?</description>
		<content:encoded><![CDATA[<p>There are object-oriented databases and multidimensional databases.  They might not use SQL.  There is Open Insight from Revelation Software, which I think of as a hierarchical database.  It doesn&#8217;t use SQL.  There may be other relational databases that don&#8217;t use SQL.  SQR for DDO uses DDO instead of SQL.  I&#8217;ve heard of all these things, but I&#8217;ve worked almost exclusively with Oracle (therefore SQL) for the past 11 years.  Can anyone else comment?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL Tutorials</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/9-sql-parameters-load-lookup-love-letter/comment-page-1/#comment-323</link>
		<dc:creator>SQL Tutorials</dc:creator>
		<pubDate>Fri, 01 May 2009 02:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=206#comment-323</guid>
		<description>You know, the thing about SQL is, that there is virtually nothing that can replace it. 

Does anyone know if a substitute exists for sql? I mean besides MS SQL and Oracle and all that jazz. Thanks.</description>
		<content:encoded><![CDATA[<p>You know, the thing about SQL is, that there is virtually nothing that can replace it. </p>
<p>Does anyone know if a substitute exists for sql? I mean besides MS SQL and Oracle and all that jazz. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: administrator</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/9-sql-parameters-load-lookup-love-letter/comment-page-1/#comment-118</link>
		<dc:creator>administrator</dc:creator>
		<pubDate>Tue, 03 Mar 2009 05:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=206#comment-118</guid>
		<description>Social Security numbers (SSN) can start with almost any three digit combination except 666 - seriously.  There are still some three digit prefixes that haven&#039;t been used, but they&#039;re going fast, so it is unwise to try to validate them.  But the brain teaser is not about validating SSN; it is about fixing typos.  There&#039;s a basic assumption here, that we have a relatively small group of people (employees of one organization) with a random scattering of SSNs.  The incoming SSNs are also not random; they should match the ones in our table.  I&#039;m also making an assumption about typos.</description>
		<content:encoded><![CDATA[<p>Social Security numbers (SSN) can start with almost any three digit combination except 666 &#8211; seriously.  There are still some three digit prefixes that haven&#8217;t been used, but they&#8217;re going fast, so it is unwise to try to validate them.  But the brain teaser is not about validating SSN; it is about fixing typos.  There&#8217;s a basic assumption here, that we have a relatively small group of people (employees of one organization) with a random scattering of SSNs.  The incoming SSNs are also not random; they should match the ones in our table.  I&#8217;m also making an assumption about typos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Josephson</title>
		<link>http://peoplesoftsqr.com/index.php/2009/03/9-sql-parameters-load-lookup-love-letter/comment-page-1/#comment-117</link>
		<dc:creator>Bob Josephson</dc:creator>
		<pubDate>Tue, 03 Mar 2009 03:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://peoplesoftsqr.com/?p=206#comment-117</guid>
		<description>For the brain teaser, I went to Wikipedia and looked up &quot;social security number&quot;. It looks from there that there are not many opportunities for SSN validation. There&#039;s no checksum, and any combination of digits is potentially valid. Other than checking for numeric-only characters and the 3-2-4 digit pattern, what can we do?

(I wonder what SSNs would look like if they had been invented today instead of in the 1930s.)</description>
		<content:encoded><![CDATA[<p>For the brain teaser, I went to Wikipedia and looked up &#8220;social security number&#8221;. It looks from there that there are not many opportunities for SSN validation. There&#8217;s no checksum, and any combination of digits is potentially valid. Other than checking for numeric-only characters and the 3-2-4 digit pattern, what can we do?</p>
<p>(I wonder what SSNs would look like if they had been invented today instead of in the 1930s.)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
