<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6832227571528843323</id><updated>2024-10-06T20:48:38.225-07:00</updated><category term="features"/><title type='text'>Squilbo - The web based SQL tool</title><subtitle type='html'>Squilbo is a web based SQL tool for MySQL and Microsoft SQL Server. It runs on IIS, and is about to enter BETA. &lt;a href=&quot;http://squilbo.com&quot;&gt;Let us know&lt;/a&gt; if you&#39;d like to try it!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://squilbo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6832227571528843323/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://squilbo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Tobin Harris</name><uri>http://www.blogger.com/profile/02203581553681366247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0pBV8duLWMRzvgFtsF5zTtW92RssFmaJbJcmbqtGaktBpuEjeIUJ8qIl3bdhX5JHfZTv_q55FSDMNWXU7AttagmiPU9fvVH13NewqAC_o01AVSSG7CR3UfLQ1sx0f/s220/tobin.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6832227571528843323.post-634512381263867242</id><published>2008-06-11T09:57:00.000-07:00</published><updated>2008-12-10T14:37:02.205-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="features"/><title type='text'>A quick way to generate pretty charts using only SQL</title><content type='html'>Today I accidentally found I could generate simple charts in &lt;a href=&quot;http://squilbo.com/&quot;&gt;Squilbo&lt;/a&gt; using simple SQL code.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEyp-nSPt63IVoY9WJuSuTRoE4TSt2ixwi_7gFn8qGNEvfVLhO4qOnoyp-JZM46_9wcr8oYq6furZ515MegZtUDijG9RqyS-87axojODtZrVEGFbfy-aVPayWRw1Ex-hZHVZBxBSQ4jpY/s1600-h/squilbo_sparklines.png&quot;&gt;&lt;img style=&quot;cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEyp-nSPt63IVoY9WJuSuTRoE4TSt2ixwi_7gFn8qGNEvfVLhO4qOnoyp-JZM46_9wcr8oYq6furZ515MegZtUDijG9RqyS-87axojODtZrVEGFbfy-aVPayWRw1Ex-hZHVZBxBSQ4jpY/s400/squilbo_sparklines.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5210685906230719842&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;To get the orange lines, I&#39;ve embedded some HTML in the SQL. This works because Squilbo runs in the web browser, and therefore if your SQL results contain HTML, the results grid will render it!&lt;br /&gt;&lt;br /&gt;I&#39;m not sure how useful all this is, but it is &lt;span style=&quot;font-weight: bold;&quot;&gt;fun&lt;/span&gt; :)&lt;br /&gt;&lt;br /&gt;I&#39;ve blogged about generating SQL &quot;Sparklines&quot; a &lt;a href=&quot;http://www.tobinharris.com/2008/2/28/draw-bar-charts-in-sql&quot;&gt;few&lt;/a&gt; &lt;a href=&quot;http://www.tobinharris.com/2008/2/28/sql-sparklines&quot;&gt;times&lt;/a&gt;, and the general idea works in any SQL IDE (Query Analyzer, Toad etc).&lt;br /&gt;&lt;br /&gt;The &lt;span style=&quot;font-weight: bold;&quot;&gt;SQL&lt;/span&gt; looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new; color: rgb(0, 51, 0);&quot;&gt;select&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new; color: rgb(0, 51, 0);&quot;&gt; year(date_created) as Year,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new; color: rgb(0, 51, 0);&quot;&gt; month(date_created) as Month, count(*) as Registrations,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new; color: rgb(0, 51, 0);&quot;&gt; concat(concat(&#39;&amp;lt;span style=&#39;&#39;background: orange; color: white&#39;&#39;&amp;gt;&#39;,  replace(space(count(*)/10),&#39; &#39;,&#39;|&#39;)),  &#39;&amp;lt;/span&amp;gt;&#39;) as Sparkline&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new; color: rgb(0, 51, 0);&quot;&gt;from completions&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new; color: rgb(0, 51, 0);&quot;&gt;group by 1,2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new; color: rgb(0, 51, 0);&quot;&gt;order by year(date_created) desc, month(date_created) desc&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: courier new; color: rgb(0, 51, 0);&quot;&gt;limit 20&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It&#39;s the concat function that&#39;s the intersting bit.&lt;br /&gt;&lt;br /&gt;See more &lt;a href=&quot;http://www.tobinharris.com/2008/2/28/draw-bar-charts-in-sql&quot;&gt;advanced&lt;/a&gt; &lt;a href=&quot;http://www.tobinharris.com/2008/2/28/sql-sparklines&quot;&gt;examples&lt;/a&gt; on &lt;a href=&quot;http://www.tobinharris.com/2008/2/28/draw-bar-charts-in-sql&quot;&gt;my personal blog&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;In case you&#39;re wondering, Squilbo isn&#39;t ready for public consumption yet. If you&#39;re interested in trying the BETA or just knowing when it&#39;s ready, then please &lt;a href=&quot;http://squilbo.com/home/interested_in_squilbo&quot;&gt;let me know&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://squilbo.blogspot.com/feeds/634512381263867242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6832227571528843323/634512381263867242' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6832227571528843323/posts/default/634512381263867242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6832227571528843323/posts/default/634512381263867242'/><link rel='alternate' type='text/html' href='http://squilbo.blogspot.com/2008/06/quick-way-to-generate-pretty-charts.html' title='A quick way to generate pretty charts using only SQL'/><author><name>Tobin Harris</name><uri>http://www.blogger.com/profile/02203581553681366247</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0pBV8duLWMRzvgFtsF5zTtW92RssFmaJbJcmbqtGaktBpuEjeIUJ8qIl3bdhX5JHfZTv_q55FSDMNWXU7AttagmiPU9fvVH13NewqAC_o01AVSSG7CR3UfLQ1sx0f/s220/tobin.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEyp-nSPt63IVoY9WJuSuTRoE4TSt2ixwi_7gFn8qGNEvfVLhO4qOnoyp-JZM46_9wcr8oYq6furZ515MegZtUDijG9RqyS-87axojODtZrVEGFbfy-aVPayWRw1Ex-hZHVZBxBSQ4jpY/s72-c/squilbo_sparklines.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>