<?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: Everything Aint a Nail</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Tue, 07 Feb 2012 23:32:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Bill Foor</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/#comment-19574</link>
		<dc:creator>Bill Foor</dc:creator>
		<pubDate>Sat, 29 Apr 2006 04:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1129#comment-19574</guid>
		<description>&lt;p&gt;I created a Golf League Manager program in Excel and been using it for several years.  Not being particularly good at programming I needed help with the handicap portion.  After working well all of a sudden this year it started giving some erroneous values.  The premise is basic as it uses the best 4 of the last 8 valid scores.  If only 4 scores are available it uses those.  The Scores worksheet is managed by Date/Week and the VBA code pulls the scores, ignores any zeros(0) and text (we use initials when for subs) sorts the scores in ascending order, takes the lowest 4 and divides by 4 to get the average. I&#039;d like to simplify this and wonder if anyone would be willing to share their solution with me for calculating handicaps.  Thanks...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I created a Golf League Manager program in Excel and been using it for several years.  Not being particularly good at programming I needed help with the handicap portion.  After working well all of a sudden this year it started giving some erroneous values.  The premise is basic as it uses the best 4 of the last 8 valid scores.  If only 4 scores are available it uses those.  The Scores worksheet is managed by Date/Week and the VBA code pulls the scores, ignores any zeros(0) and text (we use initials when for subs) sorts the scores in ascending order, takes the lowest 4 and divides by 4 to get the average. I&#8217;d like to simplify this and wonder if anyone would be willing to share their solution with me for calculating handicaps.  Thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Collins</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/#comment-12393</link>
		<dc:creator>Jamie Collins</dc:creator>
		<pubDate>Mon, 16 May 2005 15:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1129#comment-12393</guid>
		<description>&lt;p&gt;Curses.&lt;/p&gt;
&lt;p&gt;SELECT g.golfername, g.gamedate, g.score FROM golferstats AS g WHERE 3 &gt; (SELECT COUNT(*) - 1 FROM golferstats WHERE g.Score IS LESS THAN OR EQUAL TO  Score AND g.golfername = golfername);&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Curses.</p>
<p>SELECT g.golfername, g.gamedate, g.score FROM golferstats AS g WHERE 3 &gt; (SELECT COUNT(*) &#8211; 1 FROM golferstats WHERE g.Score IS LESS THAN OR EQUAL TO  Score AND g.golfername = golfername);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Collins</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/#comment-12392</link>
		<dc:creator>Jamie Collins</dc:creator>
		<pubDate>Mon, 16 May 2005 15:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1129#comment-12392</guid>
		<description>&lt;p&gt;Is it not my day? I&#039;ll try that query again:&lt;/p&gt;
&lt;p&gt;SELECT g.golfername, g.gamedate, g.score FROM golferstats AS g WHERE 3 &gt; (SELECT COUNT(*) - 1 FROM golferstats WHERE g.Score&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Is it not my day? I&#8217;ll try that query again:</p>
<p>SELECT g.golfername, g.gamedate, g.score FROM golferstats AS g WHERE 3 &gt; (SELECT COUNT(*) &#8211; 1 FROM golferstats WHERE g.Score</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Collins</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/#comment-12391</link>
		<dc:creator>Jamie Collins</dc:creator>
		<pubDate>Mon, 16 May 2005 15:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1129#comment-12391</guid>
		<description>&lt;p&gt;Oops, I posted to the wrong thread. To make amends, I&#039;ll take a stab at that query. Avoid the TOP N syntax because it is non-standard and non-relational. So, in standard SQL that subquery should look more like this:&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container text default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;text codecolorer&quot;&gt;SELECT g.golfername, g.gamedate, g.score FROM golferstats AS g WHERE 3 &gt; (SELECT COUNT(*) - 1 FROM golferstats WHERE g.Score &lt;br&gt;
&lt;br&gt;
Jamie.&lt;br&gt;
&lt;br&gt;
--&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Oops, I posted to the wrong thread. To make amends, I&#8217;ll take a stab at that query. Avoid the TOP N syntax because it is non-standard and non-relational. So, in standard SQL that subquery should look more like this:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">SELECT g.golfername, g.gamedate, g.score FROM golferstats AS g WHERE 3 &amp;gt; (SELECT COUNT(*) &#8211; 1 FROM golferstats WHERE g.Score </p>
<p>Jamie.</p>
<p>&#8211;</p></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Collins</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/#comment-12389</link>
		<dc:creator>Jamie Collins</dc:creator>
		<pubDate>Mon, 16 May 2005 15:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1129#comment-12389</guid>
		<description>&lt;p&gt;Ajaya, Sorry but I can&#039;t reproduce you results in ADO classic using your data as posted. Whether the column is seen as FLOAT and TEXT, I am not getting scientific notation.&lt;/p&gt;
&lt;p&gt;Jamie.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ajaya, Sorry but I can&#8217;t reproduce you results in ADO classic using your data as posted. Whether the column is seen as FLOAT and TEXT, I am not getting scientific notation.</p>
<p>Jamie.</p>
<p></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harald Staff</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/#comment-12372</link>
		<dc:creator>Harald Staff</dc:creator>
		<pubDate>Sun, 15 May 2005 10:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1129#comment-12372</guid>
		<description>&lt;p&gt;On choosing platform:&lt;br&gt;
My very first decision when I start something is &quot;do we have one-to-many or many-to-many relations in the data ?&quot; If yes then it&#039;s a database job and I start working.&lt;/p&gt;
&lt;p&gt;Not saying this is Best Practice, but it&#039;s a very easy guideline that always worked for me.&lt;/p&gt;
&lt;p&gt;I put lots of consideration into the table layout, after some painful experiences from some years back. Lesson learnt:&lt;br&gt;
Database basics is pretty easy and fun. But for a person &quot;coming from spreadsheets&quot; there is an extremely important difference: You can rework, sculpt, redesign, reprogram a spreadsheet solution until it&#039;s really good, but a database must be right from the very beginning. If not then it grows useless and you must choose between a total rebuild or some really ugly workarounds. &lt;/p&gt;
&lt;p&gt;Best wishes Harald&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>On choosing platform:<br />
My very first decision when I start something is &#8220;do we have one-to-many or many-to-many relations in the data ?&#8221; If yes then it&#8217;s a database job and I start working.</p>
<p>Not saying this is Best Practice, but it&#8217;s a very easy guideline that always worked for me.</p>
<p>I put lots of consideration into the table layout, after some painful experiences from some years back. Lesson learnt:<br />
Database basics is pretty easy and fun. But for a person &#8220;coming from spreadsheets&#8221; there is an extremely important difference: You can rework, sculpt, redesign, reprogram a spreadsheet solution until it&#8217;s really good, but a database must be right from the very beginning. If not then it grows useless and you must choose between a total rebuild or some really ugly workarounds. </p>
<p>Best wishes Harald</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/#comment-12370</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Sat, 14 May 2005 23:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1129#comment-12370</guid>
		<description>&lt;p&gt;Dick,&lt;/p&gt;
&lt;p&gt;In Oracle this would be a correlated subquery.&lt;/p&gt;
&lt;p&gt;I haven&#039;t used Access all that much at the SQL level - wasn&#039;t quite sure what to expect.&lt;/p&gt;
&lt;p&gt;I&#039;ve got a table called golferstats with three columns:&lt;br&gt;
golfername, gamedate, score&lt;br&gt;
This selects the previous 3 scores per golfer&lt;/p&gt;
&lt;p&gt;select g.golfername, g.gamedate, g.score&lt;br&gt;
  from golferstats as g&lt;br&gt;
 where g.gamedate in (select top 3 t.gamedate&lt;br&gt;
                        from golferstats as t&lt;br&gt;
                       where t.golfername = g.golfername&lt;br&gt;
                       order by gamedate desc)&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick,</p>
<p>In Oracle this would be a correlated subquery.</p>
<p>I haven&#8217;t used Access all that much at the SQL level &#8211; wasn&#8217;t quite sure what to expect.</p>
<p>I&#8217;ve got a table called golferstats with three columns:<br />
golfername, gamedate, score<br />
This selects the previous 3 scores per golfer</p>
<p>select g.golfername, g.gamedate, g.score<br />
  from golferstats as g<br />
 where g.gamedate in (select top 3 t.gamedate<br />
                        from golferstats as t<br />
                       where t.golfername = g.golfername<br />
                       order by gamedate desc)</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/#comment-12369</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Sat, 14 May 2005 14:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1129#comment-12369</guid>
		<description>&lt;p&gt;John:  Thanks for the offer.  Send it to &lt;a href=&quot;mailto:dick@dicks-clicks.com&quot;&gt;dick@dicks-clicks.com&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Z: Hello, kettle?  This is pot.  You&#039;re black.&lt;/p&gt;
&lt;p&gt;Dianne: I tried using TOP, but couldn&#039;t get it to work.  I wanted every player to show up in the query, not just one.  If it was just one, that would work, but I would need one query per player.  Can you change that SQL to get rid of the WHERE clause and show the TOP 3 orders for every customer?  So if you had 10 customers, it would return 30 records?&lt;/p&gt;
&lt;p&gt;Ross: Did you forget the smiley? :)  I think .net would be like using an industrial strength nail gun to hang a picture (but I&#039;m speaking from a position of zero authority on the subject).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>John:  Thanks for the offer.  Send it to <a href="mailto:dick@dicks-clicks.com">dick@dicks-clicks.com</a>.</p>
<p>Z: Hello, kettle?  This is pot.  You&#8217;re black.</p>
<p>Dianne: I tried using TOP, but couldn&#8217;t get it to work.  I wanted every player to show up in the query, not just one.  If it was just one, that would work, but I would need one query per player.  Can you change that SQL to get rid of the WHERE clause and show the TOP 3 orders for every customer?  So if you had 10 customers, it would return 30 records?</p>
<p>Ross: Did you forget the smiley? <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   I think .net would be like using an industrial strength nail gun to hang a picture (but I&#8217;m speaking from a position of zero authority on the subject).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/#comment-12368</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Sat, 14 May 2005 11:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1129#comment-12368</guid>
		<description>&lt;p&gt;On hacks and choices...&lt;/p&gt;
&lt;p&gt;At times, I too face doing it the &quot;right&quot; way or the &quot;dirty hack&quot; way...&lt;/p&gt;
&lt;p&gt;I get really annoyed with situations where I&#039;m forced to do a dirty hack just because the pressure is on.&lt;/p&gt;
&lt;p&gt;You&#039;ll never regret having built a solution the right way.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>On hacks and choices&#8230;</p>
<p>At times, I too face doing it the &#8220;right&#8221; way or the &#8220;dirty hack&#8221; way&#8230;</p>
<p>I get really annoyed with situations where I&#8217;m forced to do a dirty hack just because the pressure is on.</p>
<p>You&#8217;ll never regret having built a solution the right way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ross</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/05/13/everything-aint-a-nail/#comment-12367</link>
		<dc:creator>ross</dc:creator>
		<pubDate>Sat, 14 May 2005 00:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1129#comment-12367</guid>
		<description>&lt;p&gt;Intresting, do you think .net would help? - from what i&#039;ve seen it&#039;s like a real easy way to get your data soucre in to your front end?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Intresting, do you think .net would help? &#8211; from what i&#8217;ve seen it&#8217;s like a real easy way to get your data soucre in to your front end?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

