<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>eor</title>
  <link>https://eor.dreamwidth.org/</link>
  <description>eor - Dreamwidth Studios</description>
  <lastBuildDate>Tue, 07 Aug 2012 01:45:02 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>eor</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/2068776/1440331</url>
    <title>eor</title>
    <link>https://eor.dreamwidth.org/</link>
    <width>100</width>
    <height>57</height>
  </image>

<item>
  <guid isPermaLink='true'>https://eor.dreamwidth.org/350811.html</guid>
  <pubDate>Tue, 07 Aug 2012 01:45:02 GMT</pubDate>
  <title>SQL classics: #1</title>
  <link>https://eor.dreamwidth.org/350811.html</link>
  <description>I do a lot of troubleshooting/refactoring of database queries.  By themselves they don&apos;t amount to much of anything, but when they all start working together small inefficiencies turn into large inefficiencies.  I&apos;ve resisted sharing some of my favorite things because they&apos;re pure geek and very few people will find the humor in them.  But tonight I can&apos;t resist because I found one that is just too &lt;strike&gt;good&lt;/strike&gt; bad to be true.&lt;br /&gt;&lt;br /&gt;From a real SQL stored procedure, I couldn&apos;t make this stuff up, table names changed to protect the guilty:&lt;br /&gt;  Set &lt;span style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://www.dreamwidth.org/profile?user=scencode&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://www.dreamwidth.org/profile?user=scencode&apos;&gt;&lt;b&gt;scencode&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; = (Select Code From the.table Where Num =&lt;span style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://www.dreamwidth.org/profile?user=scenint&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://www.dreamwidth.org/profile?user=scenint&apos;&gt;&lt;b&gt;scenint&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;)&lt;br /&gt;  Set &lt;span style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://www.dreamwidth.org/profile?user=scen&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://www.dreamwidth.org/profile?user=scen&apos;&gt;&lt;b&gt;scen&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; =(Select num From the.table Where Code =&lt;span style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://www.dreamwidth.org/profile?user=scencode&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://www.dreamwidth.org/profile?user=scencode&apos;&gt;&lt;b&gt;scencode&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;Obfustication: 1&lt;br /&gt;Inefficiency: 2&lt;br /&gt;Utter Uselessness: 5&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=eor&amp;ditemid=350811&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://eor.dreamwidth.org/350811.html</comments>
  <category>fail</category>
  <category>sql</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
