<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[TeamSQL - Medium]]></title>
        <description><![CDATA[SQL and Database Tutorials using TeamSQL| MySQL, PostgreSQL, Microsoft SQL Server, Amazon Redshift and Redis - Medium]]></description>
        <link>https://medium.com/teamsql?source=rss----1f89196825f7---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>TeamSQL - Medium</title>
            <link>https://medium.com/teamsql?source=rss----1f89196825f7---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 22 May 2026 18:48:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/teamsql" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Analyze A/B Tests in TeamSQL]]></title>
            <link>https://medium.com/teamsql/analyze-a-b-tests-in-teamsql-a4310813e664?source=rss----1f89196825f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/a4310813e664</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[a-b-testing]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Can Abacıgil]]></dc:creator>
            <pubDate>Wed, 14 Feb 2018 11:03:15 GMT</pubDate>
            <atom:updated>2018-02-14T11:03:15.196Z</atom:updated>
            <content:encoded><![CDATA[<p>In these days A/B Tests are a common tool used by owners of e-commerce web sites. In few words we can say that A/B tests are like the speedometer of a race car, they serve to measure the most important metric of an e-commerce site: <strong>The conversion rate</strong>. In this article we will explain how to create a chart in TeamSQL to see, compare and evaluate how an e-commerce web site is performing.</p><p><strong>First step: To have a metric</strong></p><p>One of the most important metrics in these days to measure the efficiency of a E-commerce web site is the <strong>conversion rate</strong>, which is a number between 0 and 1 representing the percentage of people who closed a transaction in a e-commerce site, related to all the people who visited the site during a period of time.</p><p>We don’t need an A/B test to know the conversion rate, we can obtain it, by simply count all the visitors to the site during a period of time and the quantity of sells we made, then we can do the next math operation:</p><p><strong>Conversion Rate = Number of Sells done / Number of visitor received</strong></p><p>Let’s suppose during a day we had 1000 visitors to our site, and we closed 120 transactions. Then our conversion rate is 120/1000 =<strong> 0.12 </strong>(0.12 means 12%)</p><p><strong>Can I trust in Conversion Rate?</strong></p><p>Hummm, yes you can. But we need to know what a conversion rate is, in order to understand the real significance of this metric. Conversion rate is the result of an estimation (or a guess), if we try to estimate it again, we will likely get other different value (perhaps very close to the previous one). This is the reason why all estimators should came along with an error level measure. And based on that error level we define a <strong>range</strong> instead of a single value. A range where the estimator (the conversion rate in our case) is with a high level of confidence. For example we can say:</p><p><strong><em>The conversion rate of the site is IN the range [11% , 13%] with a 95% of confidence.</em></strong></p><p>However in order to simplify, the statement, many people would say:<strong> the conversion rate is 12% (which is the medium value in the range)</strong>. This simplification can be the root of a wrong site evaluation and wrong decisions.</p><p><strong>What are A/B Tests for ?</strong></p><p>A/B Tests are a compare tool or technique to determine if a change to the site improves the conversion rate or not, however you don’t fall on the simple compare of conversion rate single values. You must extract conclusion by comparing both conversion rate ranges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/0*h2_g11aqi1EmGhPk." /></figure><p>In the previous image we can conclude that Site Variation B is better because the range for conversion rate is higher ever. Even in the worst case (23%) of Variation B we have a value of conversion rate higher than any value in Variation A range. In this example we say we don’t have overlapping of ranges.</p><p>Let’s see a case with overlapping:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/0*nlexzShld4xV-kMf." /></figure><p>Is the Variation B better or not ? Well, seems to be better, however we cannot be sure, What about if “Variation A site” has a conversion rate of 21% and “Variation B site” has a conversion rate of 20%?. In this case A is better than B. Anyway, we can conclude that we need to continue testing.</p><p><strong>Sample table: e-commerce A/B Test data</strong></p><p>The following table includes date of 6 A/B tests done on a e-commerce site. There are 7 sets of test data: one set of data corresponds to the test of the original site and the other 6 data sets were obtained by testing the site after each of 6 improvements done. Each data set is composed by 5 tests (or records) done with 100 users each. The column “test_code” represents the name of the improvement, while the column “test_rate” represents the conversion rate obtained on this test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/0*OM6bpQmllSR39tms." /></figure><p><strong>How to obtain the range for conversion rate</strong></p><p>In order to obtain the range for the conversion rate, we need to use two aggregation functions. First we will use the average (avg) function to obtain the media or average value of all the conversion rates. The media will be the central point of the range. Then, the second function we need to use is the standard deviation. With the result of the standard deviation function we will define the start and end points of the range. Let’s see how to calculate both points</p><p>In order to have a confident of 95%, the start of the range will be the point:</p><p><strong><em>average — 2 * standard deviation</em></strong></p><p>and the end of the range will be the point:</p><p><strong><em>average + 2 * standard deviation</em></strong></p><p>Let’s go now to TeamSQL, in the charts window, we can use the aggregation functions. In this case we will use the <strong>average</strong> function to show the central point of the conversion rate range as we can see in the following print screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/0*mELKZeVkH1wruZmA." /></figure><p>The chart is the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/0*e3aR-1EAZB4lYwvI." /></figure><p>However, the previous chart only shows the average value or central point in the conversion rate range. We would like to see the range of each test in the chart. Then we will add two more lines: one line (black) at the bottom representing the start of the range, and one line on top (green) showing the end of the range. Let’s see the new chart</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*ueH4CTdqRbiVF4kJ." /></figure><p>In order to understand the previous chart we need to isolate and identify each conversion range. For example in the following image we can see the conversion range for the test NEW UX. The range for this test is 14% to 15.7%, this means that conversion rate is in the range [14% , 15.7%] with a confidence of 95%</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/0*PrkXSZCwyQg7PYR1." /></figure><p>The next step is to put all the pieces together and understand how to compare the range of Variation A with the range of variation B, Let’s see an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/0*1OZk_mPeMgpEAvln." /></figure><p>In the previous image we can see that Variation A range is 8%-11%, while variation B range is 14%-15.7%. In this case, it is clear that Variation B is better than A, because the worst case on Variation B (14%) is better than the best case on variation A (11.8%). We leave to the reader the analysis of range when there are range overlapping.</p><p><strong>Conclusion</strong></p><p>In this article we covered an important metric called conversion rate metric, the A/B Tests technique and how to create a chart in TeamSQL to evaluate and analyze results of A/B Tests. Charts in TeamSQL are very flexible, you can use aggregation functions (like sum, average, standard deviation) to calculate new metrics on which base the charts.. You can apply this technique to any change to your e-commerce web site. Let’s try to adapt to your database!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4310813e664" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teamsql/analyze-a-b-tests-in-teamsql-a4310813e664">Analyze A/B Tests in TeamSQL</a> was originally published in <a href="https://medium.com/teamsql">TeamSQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Charting Your Data with TeamSQL]]></title>
            <link>https://medium.com/teamsql/charting-your-data-with-teamsql-916d1885ab9?source=rss----1f89196825f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/916d1885ab9</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[aggregation]]></category>
            <dc:creator><![CDATA[Can Abacıgil]]></dc:creator>
            <pubDate>Thu, 08 Feb 2018 08:01:12 GMT</pubDate>
            <atom:updated>2018-02-08T08:01:12.054Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://teamsql.io/">TeamSQL’s</a> charts feature lets you visualize your database queries in just a few clicks. You can select from a variety of different chart types, perform complex data aggregation and sorting, and customize the appearance of your charts right from <a href="https://teamsql.io/">TeamSQL</a>. Charts work with any database supported by <a href="https://teamsql.io/">TeamSQL</a> and can even be exported as images.</p><p>In this post, we’ll demonstrate <a href="https://teamsql.io/features/charts">TeamSQL Charts</a> using <a href="https://github.com/datacharmer/test_db">this sample MySQL database</a>, which contains employee and salary records for a fictional company. The database contains a table for employees (<em>employees</em>) as well as their departments (<em>departments</em>), salaries (<em>salaries</em>), titles (<em>titles</em>), and department managers (<em>dept_manager</em>).</p><h3>Charting the Data</h3><p>We’ll demonstrate the chart feature by creating two charts: one that shows a range of employee salaries based on the employee’s title, and one that shows how employee salaries have changed over time.</p><h3>Chart 1: Employee Salaries by Title</h3><p>The <em>salaries</em> table contains a list of salaries for each employee. Likewise, the <em>titles</em> table lists out each employee’s title. We’ll join these two tables to match each salary with a title based on the employee’s unique ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MKymjD-1KxtycNkm." /></figure><p>After the results appear, click the “Charts” button (next to the “Execute” button) to open the TeamSQL Charts window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tiVpTYHEqVrYGvRw." /></figure><p>In the center of the window is the query we just ran along with a preview of the result set. To the left is a list of chart types we can choose from. Below the result set is a set of controls for configuring the chart’s data sources, filters, and settings.</p><p>In this example, we’ll create a bar chart. Click on the bar chart icon on the left-hand side of the page, then scroll down to the section called “Aggregations”. This is where we will set the chart’s data sources, otherwise referred to as its <em>measures</em> and <em>dimensions</em>.</p><p><strong>Measures</strong> are numeric values used to populate the y-axis. Each measure consists of a:</p><ul><li><em>Source</em>: the database field used to populate the measure’s values</li><li><em>Label</em>: the name to display in the legend</li><li><em>Aggregation</em>: the calculation performed on the values such as the minimum, maximum, average, or standard deviation</li><li><em>Sort</em>: arranges the values in ascending or descending order</li></ul><p>We’ll add two measures: one for the lowest salary per title, and one for the highest salary per title. We’ll sort our titles by the highest salary in ascending order. Even though we’re only sorting by our highest salary measure, the chart automatically reorders the entire chart to fit the sort.</p><p>Click the “+” button to open the Select Measure dialog and configure each measure as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AHzixrw77bp0hpid." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zNoEWxQlQTh9GMgR." /></figure><p>Next, we’ll set a <strong>dimension</strong>. Dimensions are used to populate the x-axis. Unlike measures, which are strictly numeric, dimensions can be anything from numerical values to text. In this case, we’ll use the <em>title</em> column as our dimension. What this means is that for each title, we’ll display the corresponding values from our two measures.</p><p>Click “+” to open the Select Dimension dialog and configure the title dimension as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L5RDZOZpRaxm3w55." /></figure><p>Finally, we’ll create the chart by clicking Apply. <a href="https://teamsql.io">TeamSQL</a> automatically creates the chart with two bars per title: one for the lowest salary, and another for the highest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*shAPQWOR4GxQy3Yk." /></figure><p>To make this chart more readable, we’ll move the lowest salary bar next to the highest salary bar. Click “Chart options” to open the options dialog. This is where you can customize the appearance of the chart, such as the title and subtitle, font size, orientation, axis labels, and legend values. In the General tab is a series of checkboxes that toggle various features of the chart. Uncheck “Stacked” to display the two measures as two separate bars. Click “Apply” to save the changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qtY1I5uWOay__hT7." /></figure><p>Now we have a much clearer view of our employees’ salaries. With “Show Tooltips” enabled, you can hover the mouse over any one of the bars to see the actual values. You can also display the values within the chart itself by clicking the “Series” tab and checking “Value labels”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/0*UkzW22NCXNSXk7FJ." /></figure><h3>Chart 2: Employee Salaries Over Time</h3><p>The last chart only shows us salary ranges as of today’s date. Suppose we want to see how employee pay has changed over time. To do this, we’ll create a new chart that plots employee salaries for each year since the start of the organization.</p><p>We’ll start by modifying our existing query to include dates. Each record in the <em>salaries</em> table contains the date range that the salary was valid from (the <em>from_date</em> and <em>to_date</em> fields). We’ll use the <em>to_date</em> field in our query, since that indicates the last day that the salary was valid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VlR0GJfr24rDl8IQ." /></figure><p>Next, we’ll create the chart. This chart is identical to the previous chart except for two key differences:</p><ol><li>We’ll replace the Title dimension with a date dimension using the <em>to_date</em> field.</li><li>We’ll sort the chart by date instead of by the highest salary.</li></ol><p>Add the two salary measures like before, but instead of sorting by the highest salaries in ascending order, keep both measures unsorted. Next, add a new dimension and select “to_date” as the source. Since “to_date” is a date field, TeamSQL provides a field called <strong>Time Bucket</strong>, which allows you to aggregate the field by time period. For example, you can group dates by day, week, month, year, or by time of day. We’ll group by year and sort in ascending order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w3ErUoCwbGj4YhjX." /></figure><p>Before we create the chart, there’s one minor issue with the data set that we need to address. Salaries that are still current contain “1/1/9999” in the <em>to_date</em> field. This causes the chart to display “9999” as one of the years. To prevent this, you can either modify your SQL query to replace instances of “1/1/9999” with today’s date, or create a chart filter that only accepts dates earlier than 1/1/9999.</p><p>Click “Apply” to create the chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uzt0faxGGqhu1UMc." /></figure><h3>Conclusion</h3><p>The charts feature is a powerful tool for visualizing your SQL data. You saw how easy it is to create and customize charts with just a few clicks. You can access a variety of different chart types (including pie charts, scatter charts, funnel charts, bullet graphs, and heat maps), change the appearance of your charts, and export your charts as images.</p><p>The charts feature is free to use during the Release Candidate period and you can download TeamSQL from <a href="https://teamsql.io/downloads">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=916d1885ab9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teamsql/charting-your-data-with-teamsql-916d1885ab9">Charting Your Data with TeamSQL</a> was originally published in <a href="https://medium.com/teamsql">TeamSQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualize your data with charts in TeamSQL]]></title>
            <link>https://medium.com/teamsql/visualize-your-data-with-charts-in-teamsql-b2f7ccb1aa24?source=rss----1f89196825f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/b2f7ccb1aa24</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[postgres]]></category>
            <dc:creator><![CDATA[Can Abacıgil]]></dc:creator>
            <pubDate>Mon, 15 Jan 2018 15:55:40 GMT</pubDate>
            <atom:updated>2018-01-24T13:07:19.150Z</atom:updated>
            <content:encoded><![CDATA[<p>TeamSQL offers a new and <strong>redesigned </strong>feature to create your own charts based on query resulting data. The Charts feature of TeamSQL is now more powerful with <strong>advanced aggregation</strong> and <strong>visualization options</strong>. TeamSQL Charts is <strong>all free</strong> during Release Candidate period. Visualize your data by creating the charts you need, right in TeamSQL.</p><p>You can easily create bar, area, line, pie, scatter, funnel, and bullet charts, as well as heat maps, using the data you return from your database. You don’t need to export your data to a separate data visualization tool.</p><figure><a href="https://teamsql.io/?utm_source=blog&amp;utm_medium=top-banner&amp;utm_campaign=visualize-your-data-with-charts"><img alt="" src="https://cdn-images-1.medium.com/max/362/1*qfLCC3bjvCEUxU5rv5bzOQ.png" /></a></figure><p><strong>A hardware shop table to populate our charts</strong></p><p>In the rest of the article, all the query examples and charts will be based on a simple hardware shop table called SALES. The SALES table has one record per sale done in a hardware shop. If we execute in TeamSQL a “select * from SALES” SQL query we can see the following image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zxjN7BGEhGQMcP1d." /></figure><p>The examples in this article are all executed against a PostgreSQL database, however as TeamSQL is database agnostic, you can create charts based on data stored in many database managers like MySQL, Microsoft SQL, Redshift or Redis among others.</p><p><strong>Feeding a chart with a SELECT SQL query</strong></p><p>In TeamSQL we can create a chart directly with the query output data. Then, the first building block for a chart is a query. Once we executed a query in the SQL panel, and having selected the “Results” window, we can press the orange button “Charts” at the right of the “Execute” button and the following window will open:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gs0TH9cJyqfUDdvE." /></figure><p>The black boxes on the right side of the window are buttons to select the type of chart. TeamSQL supports several chart types like: bar, line, pie, scatter or area charts among others, We will go back later to chart types, now we will choose the default chart type, which is “bar”, and we will continue working with other parameters of the chart in the same window. We will scroll down and we see this part of the window:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ido_c3dMYTK2N7lM." /></figure><p>The bar chart to be created will be based on two set of values. Every set of values must be associated with a column in the SELECT query we used as the origin of the chart.</p><p>The first set of values is called the “Measure” and should be a numeric value, because we need a measurable value. We need to press “+” sign and select which column of the query will act as a measure in the bar chart we are creating. We will talk later in detail about the measure set of values, but now let’s go to the next parameter in the chart.</p><p>The second set of values is called the “Dimension” and can be any data type, because this value will be shown as a title or legend in the chart. Again we need to press “+” sign and select which column of the query will act as a dimension.</p><p>Let’s see how to configure the measure and dimension for our bar chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MQtPC775FKthitFH." /></figure><p>In the previous image we selected the column quantity_sold as the measure we want to base our chart on. Is important to note, we also selected in the aggregation parameter, the value “Total sum of”. Finally we press “apply” button at the button and the following window is displayed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H5JrfztNoeOa64I3." /></figure><p>Then we go to dimension parameter, press “+” and select them as we can see in the following image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RmsXeWA2mLaXkrBS." /></figure><p>as we see in the previous image we selected “date of sale” column as the dimension column and then we press “Apply” button. Finally we can see the following window, where the chart is almost defined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hGdyfwS0EHe9tfjK." /></figure><p>The last thing to do is to press “Apply” (this time at chart level), and see how our chart is built. The resulting chart is in the following image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Cmm1cDYiLIrjH5Pj." /></figure><p>In the previous image we can see our first chart!. The dimensions are all the days when we sold something. And the measure is the sum of units sold in each day. A proof of that is sep 23, when the chart shows 8 units sold, and we have two sales: one sale is for 2 hammers and 6 paint units.</p><p>The TeamSQL Chart feature is really powerful and flexible and allow us to can make many changes to the chart. If we try to cover all the options, this article will become in a bored Reference Manual, however in order to show how flexible TeamSQL is, let’s change something.</p><p>Suppose we want now “one bar per month”, instead of “one bar per day”. Let’s change the dimension. We first need to remove the current dimension by pressing “-” at the right of current dimension.</p><p>Then we will add a new dimension using the same column “quantity_sold” but in the parameter “time bucket” we will choose a different value. We will select “month of date_of_sale” instead of “day of date_of_sale”. Then we press “Apply” twice and we can see the new chart, now oriented to month instead to day. Powerfull !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f7bU3sJ1cMNwpPXn." /></figure><p><strong>Chart types: too many options to choose one</strong></p><p>Let’s talk now about chart types. TeamSQL Chart offers many different chart types. Depending of the chart type, we will need different set of values of feed the chart. For example heat map needs three set of values, while many others types (like bar in our previous example) needs two set of values. On other hand some types of charts are better to show different concepts. For example if we want to show how the market is shared for any specific product, the best type of chart is “pie”, while to showing trends or sales increases over the time, a line chart can be better.</p><p>Let’s create a line chart with a new query, we can see in the following image our new query on the chart creation window:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-iFBoKob_eLo-dEK." /></figure><p>We added as a new column in the query the “sale_amount” value, using the expression in the select: quantity_sold * unit_price. Let’s try to create a line chart based on the amount sold every day. If we choose “Total sum of sale_amount” for measure and “Day of date_of_sale” for dimension we will obtain the following chart:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9tKHRQ1rqLp_mm6M." /></figure><p>Other interesting feature of the chart, is that we can move the mouse over an interesting graph area, to know values behind the graph. Let’s suppose we want to know the reason behind the sales increase on march 21, we can put the mouse over the graph in march 21 and we will see the following image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K-lEwInmmzNsNLxF." /></figure><p>Let’s now suppose we want to know about the distribution of revenue based on articles. As we mentioned, for this kind of analysis, a pie chart is the best option, so choose pie chart, then select “Total sum of sale_amount” as measure and “product_id” as dimension and finally we can see the following chart:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5SzEAxrCailgTcDl." /></figure><figure><a href="https://teamsql.io/?utm_source=blog&amp;utm_medium=bottom-banner&amp;utm_campaign=visualize-your-data-with-charts"><img alt="" src="https://cdn-images-1.medium.com/max/362/1*qfLCC3bjvCEUxU5rv5bzOQ.png" /></a></figure><p><strong>Conclusion</strong></p><p>By creating several charts using a simple base table, we showed how flexible and powerful is the TeamSQL Charts feature. We explained here: line, pie and bar charts, however there are more chart types to be covered. One of them is the interesting heat map, which we plan to cover in a next article. Let’s continue learning how to extract the best juice from TeamSQL, it is worth!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2f7ccb1aa24" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teamsql/visualize-your-data-with-charts-in-teamsql-b2f7ccb1aa24">Visualize your data with charts in TeamSQL</a> was originally published in <a href="https://medium.com/teamsql">TeamSQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TeamSQL Extensions: Google Maps]]></title>
            <link>https://medium.com/teamsql/teamsql-extensions-google-maps-c79b4b013e78?source=rss----1f89196825f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/c79b4b013e78</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[extension]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[google-maps]]></category>
            <dc:creator><![CDATA[Can Abacıgil]]></dc:creator>
            <pubDate>Thu, 11 Jan 2018 10:29:44 GMT</pubDate>
            <atom:updated>2018-01-11T10:29:44.093Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the biggest perks to using TeamSQL is it’s extensibility. One size does <em>not</em> fit all, and what your colleague needs in their data client might not be what you need in yours. As such, TeamSQL will ship with a default set of features, and you can add as much as you’d like to create the client that works best for you!</p><p>Today, we will take a look at one of the extensions currently available in the Extensions Store: Google Maps.</p><figure><a href="https://teamsql.io/?utm_source=blog&amp;utm_medium=top-banner&amp;utm_campaign=google-maps-extension"><img alt="" src="https://cdn-images-1.medium.com/max/362/1*vUfuhKTyfkT6sUE8NZjBIg.png" /></a></figure><h3>What does the Google Maps Extension do?</h3><p>So let’s say that your data set returns a set of coordinate points. You can highlight the data points, right-click to display the options menu, and select <strong>Show in Google Maps</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*J78JqoBzxMPp14xWEmdZiA.png" /><figcaption>TeamSQL Google Maps extension is available in the context menu of gridview</figcaption></figure><p>This launches a new window with a Google map showing you the location indicated by the coordinate points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RptAAPKoj4rfKy6O2f94KA.png" /></figure><h3>How does this help me?</h3><p>Location related data is commonly stored and used, and by installing this extension, you can get additional information from a set of coordinate points you’ve stored in your database without storing any additional information. You can leverage the power of Google Maps while working in TeamSQL.</p><h3>Getting Started</h3><p>If you don’t already have a copy of TeamSQL, <a href="https://teamsql.io/download">download your free trial</a> today!</p><figure><a href="https://teamsql.io/?utm_source=blog&amp;utm_medium=bottom-banner&amp;utm_campaign=google-maps-extension"><img alt="" src="https://cdn-images-1.medium.com/max/362/1*vUfuhKTyfkT6sUE8NZjBIg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c79b4b013e78" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teamsql/teamsql-extensions-google-maps-c79b4b013e78">TeamSQL Extensions: Google Maps</a> was originally published in <a href="https://medium.com/teamsql">TeamSQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sharing Your TeamSQL Folders]]></title>
            <link>https://medium.com/teamsql/sharing-your-teamsql-folders-56b3be4f5f33?source=rss----1f89196825f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/56b3be4f5f33</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[file-sharing]]></category>
            <dc:creator><![CDATA[Deniz Gurbuz]]></dc:creator>
            <pubDate>Tue, 09 Jan 2018 08:51:23 GMT</pubDate>
            <atom:updated>2018-01-09T08:52:52.973Z</atom:updated>
            <content:encoded><![CDATA[<p>In our opinion, one of the biggest benefits to using TeamSQL is the ability to share your work with your teammates, either individually or with groups of individuals, with ease.</p><p>Rather than going through the traditional practice of exporting your query, saving it somewhere, and then forwarding the access directions to your colleagues, you can let TeamSQL do the heavy lifting.</p><p>Simply provide information about who you’d like to share with and the recipients’ email addresses, and TeamSQL will take care of the access-related steps (no more exporting queries!).</p><p>Here’s how to do this (notice how few steps are required).</p><h3>How to Share Your TeamSQL Folders</h3><p>To get started, navigate to the <strong>Saved Queries </strong>area of TeamSQL. You’ll see a list of all the queries you saved, as well as the folders you’ve created to store them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7KUJrU80WmanwaMAxI4wOQ.png" /></figure><p>Select the folder you want to share. You’ll see the options associated with that folder appear in the toolbar at the top. Click <strong>Share</strong> to proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0FxeOzkozrj-MfkKHqM7hg.png" /></figure><p>The <strong>Share Folder </strong>dialogue appears. Choose <strong>Individuals </strong>to share with a single person. You’ll need to provide the user’s email address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ApfeWZezntVDjXuE8uuAHw.png" /></figure><p>Choose the <strong>Teams</strong> tab if you want to share with an existing TeamSQL team (which is essentially a group of individuals whose emails you’ve already provided).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c69duoJuWeVuuDuBL9A4Wg.png" /></figure><p>Click <strong>Save </strong>to proceed.</p><p>At this point, the users to whom you’ve shared will receive an email that you’ve shared a TeamSQL folder with them. They will be provided an access link, as well as a link to download TeamSQL if they do not already have a local copy.</p><p>Happy sharing!</p><figure><a href="https://teamsql.io/?utm_source=blog&amp;utm_medium=bottom-banner&amp;utm_campaign=sharing-your-teamsql-folders"><img alt="" src="https://cdn-images-1.medium.com/max/362/1*qfLCC3bjvCEUxU5rv5bzOQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56b3be4f5f33" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teamsql/sharing-your-teamsql-folders-56b3be4f5f33">Sharing Your TeamSQL Folders</a> was originally published in <a href="https://medium.com/teamsql">TeamSQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Emulating UPSERT in PostgreSQL]]></title>
            <link>https://medium.com/teamsql/emulating-upsert-in-postgresql-6ac0a165bbf2?source=rss----1f89196825f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/6ac0a165bbf2</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[database-development]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[postgresql]]></category>
            <dc:creator><![CDATA[Eren Baydemir]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 10:12:59 GMT</pubDate>
            <atom:updated>2018-01-05T10:12:58.951Z</atom:updated>
            <content:encoded><![CDATA[<p>Upsert is an interesting and powerful SQL statement not supported on all database managers. In this article we will cover a technique to emulate the upsert statement with other regular SQL statements in PostgreSQL. You can apply this technique in other database engines too.</p><figure><a href="https://teamsql.io/?utm_source=blog&amp;utm_medium=top-banner&amp;utm_campaign=pg-upsert"><img alt="" src="https://cdn-images-1.medium.com/max/362/1*Um2KQJ4SrZCXqUSfp9MYPQ.png" /></a></figure><p><strong>The UPSERT statement</strong></p><p>The upsert statement is used when we have two tables. One is the destination table, where we will do updates or inserts (hence the name upsert) and the other table is the source table, where the information to be inserted or updated is stored. Let’s see an example.</p><p><strong>Example tables : employee and employee_news</strong></p><p>Let’s suppose we have a table called employee as we can see in the first image, which is the destination table and the employee_news table as the source table. Both tables have the same schema. To understand how both tables are related, we can think employee_news as a table that we receive once a month with the changes to apply to the employee table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*E-6j5LTL1hxLw0NU8tsm5A.png" /></figure><p><strong>employee_news table (source)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*IR3kssyod_MGrQXwYJnS5A.png" /></figure><p><strong>UPSERT resulting table</strong></p><p>To understand what we expect from the upsert execution, we will show the resulting employee table expected. The upsert statement only modify the destination table by: inserting non existing records (based on emplid value) and updating previously existing records. In the following image the new records are showed in green, and the fields with changes in blue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/0*wwykMlCoKU80d1Lg." /></figure><p><strong>Implementing UPSERT</strong></p><p>The implementation of upsert we are covering here is based on the combination of the following two SQL statements:</p><ul><li>UPDATE with RETURNING *</li><li>INSERT of a result set produced with a SELECT</li></ul><p>In the next paragraphs we will explain both SQL statements</p><p><strong>UPSERT: UPDATE THE MATCHING RECORDS</strong></p><p>Lets see first the SQL update to modify the employee table with the records on employee_news table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/0*6nKneLFELSmRv-RB." /></figure><p>In the previous image we can see how to update a table (employee) based on other table with similar schema (employee_news). As we can see in the last line of the update, we affected or changed only records matching on emplid value.</p><p>The next point to explain is the RETURNING * sub-clause, which is a really powerful sub-clause that can be used in the insert, delete and update sql statement. It allows us to return as a result set all the records affected by an insert, delete or update. Then, in our upsert implementation, we will add to the previous update the RETURNING * to return all the update affected rows as they were a regular result set of a select. This result set (implemented as the upsert temporary table in our example) will be used in the insert as we will see in the next paragraph.</p><p><strong>UPSERT: INSERTING THE NON MATCHING RECORDS</strong></p><p>The next image shows the insert of the non matching records(records existing in employee_news and not existing in employee). The key to exclude the non matching records is the WHERE NOT EXISTS clause,.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/0*0W-aO8CYlxk1bgHO." /></figure><p>The idea behind the NOT EXISTS clause is: if the record in employee_news doesn’t exist in the upsert temporary table, then this record must be inserted into employee. It is simple !</p><p><strong>LET’S PUT ALL THE PIECES TOGETHER</strong></p><p>Now we can see the complete upsert implementation. It is easy to see each part: first, the update part, and second the insert part.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/0*TXQsYD79plAv_GFq." /></figure><figure><a href="https://teamsql.io/?utm_source=blog&amp;utm_medium=bottom-banner&amp;utm_campaign=pg-upsert"><img alt="" src="https://cdn-images-1.medium.com/max/362/1*Um2KQJ4SrZCXqUSfp9MYPQ.png" /></a></figure><p><strong>CONCLUSION</strong></p><p>We covered a technique to emulate the upsert statement, by combining an update and an insert. You can apply this technique to any pair of tables with identical schemas. Let’s try to adapt to your database!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ac0a165bbf2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teamsql/emulating-upsert-in-postgresql-6ac0a165bbf2">Emulating UPSERT in PostgreSQL</a> was originally published in <a href="https://medium.com/teamsql">TeamSQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TeamSQL Charts: Scatter Plots]]></title>
            <link>https://medium.com/teamsql/teamsql-charts-scatter-plots-1b5991715515?source=rss----1f89196825f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/1b5991715515</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[charts]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Can Abacıgil]]></dc:creator>
            <pubDate>Mon, 06 Nov 2017 11:13:31 GMT</pubDate>
            <atom:updated>2017-11-06T11:13:31.191Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, we’ll finish up our blog series on the types of charts you can create using TeamSQL’s new charting feature by covering the final chart type available: scatter plots.</p><p>Let’s say that we need to look at the correlation between height (in centimeters) and weight (in kilograms). Our returned data looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7muoUOEPPFkmlGWZ." /></figure><p>As always, once we return data, we can launch the TeamSQL charts wizard by clicking on <strong>Charts</strong>. Select the <strong>Scatter </strong>option, set your <strong>dimensions </strong>and <strong>measures</strong>, and click <strong>Create to proceed.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A6CnTI9MmwPHSWIH." /></figure><p>TeamSQL will now generate your chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DUugKA0hDXkd0OQL." /></figure><p>As always, you can save your chart by exporting it as a PDF file or saving it to your clipboard for use in another application</p><p>Happy charting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b5991715515" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teamsql/teamsql-charts-scatter-plots-1b5991715515">TeamSQL Charts: Scatter Plots</a> was originally published in <a href="https://medium.com/teamsql">TeamSQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why You Should Use TeamSQL Instead of the Command Line for Redis]]></title>
            <link>https://medium.com/teamsql/why-you-should-use-teamsql-instead-of-the-command-line-for-redis-e3016748ddb3?source=rss----1f89196825f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/e3016748ddb3</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Can Abacıgil]]></dc:creator>
            <pubDate>Wed, 01 Nov 2017 09:50:05 GMT</pubDate>
            <atom:updated>2017-11-01T09:50:04.635Z</atom:updated>
            <content:encoded><![CDATA[<p>Redis doesn’t require much in terms of software, and in fact, you probably went straight into working with Redis using the command-line interface (CLI). While there’s no arguing with simplicity, especially if it works, here’s why you might consider using TeamSQL to manage your Redis environments instead of relying on CLI-based tools.</p><figure><a href="https://teamsql.io/?utm_source=blog&amp;utm_medium=top-banner&amp;utm_campaign=redis-switch"><img alt="" src="https://cdn-images-1.medium.com/max/362/1*vUfuhKTyfkT6sUE8NZjBIg.png" /></a></figure><h3>App Simplification</h3><p>It might seem counterintuitive that you can simplify your tool set by adding another product (in this case, TeamSQL), but if TeamSQL works with some (or even all) the environments in which you’re working, you can streamline your workflow. Rather than wasting time switching between dedicated management clients and tools, you can manage everything in a centralized location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/207/0*_VnRWBjIC8BZUor3." /></figure><p>In addition to allowing you to easily manage most database environments, you can easily keep tabs on multiple Redis servers simultaneously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/0*wStoFfqSdkpWk5Ig." /></figure><p>To get up and running with Redis, you have to download and compile the Redis package. The package includes <strong>redis-cli</strong>, which is used for server access. However, after you’ve connected, you can only run commands against the specific database to which you’ve connected. This is different from TeamSQL, where you can connect to multiple servers and open multiple tabs, each of which is running commands against a different server.</p><h3>IDE-Like Feature Set</h3><p>When working with Redis, you might find yourself running similar command repeatedly. In such instances, the features you’d find in IDEs or data clients that mimic the functionality of IDEs would be helpful in minimizing the amount of typing you’re doing. With TeamSQL, you get query history (all queries you run are automatically saved, so you don’t even need to save manually), as well as the ability to create your own custom snippets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/0*xyMPe53BrHYWdjnP." /></figure><p>Furthermore, TeamSQL’s search functionality means that it’s easy to find work you’ve done. We’ve already mentioned that all queries you run are automatically saved, so you don’t need to manually save, but you can also save in-progress queries as well. It’s also worth mentioning that you can search for Redis keys easily</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/0*8H1Vbu9BvhlNsXMf." /></figure><p>Extensibility</p><p>TeamSQL’s extensibility features mean that you can export, copy, and save your returned results sets, as well as use them in things like Extensions. Basically, you’re returning your data and immediately working with the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/0*AvJ0PvA_aYk2_Z5a." /></figure><h3>Summary</h3><p>There’s nothing wrong with relying on CLI-based tools for managing Redis, but there are definitely upsides to using TeamSQL with your Redis instances. Try out a demo of TeamSQL today to see how useful it is when it comes to managing Redis.</p><figure><a href="https://teamsql.io/?utm_source=blog&amp;utm_medium=bottom-banner&amp;utm_campaign=redis-switch"><img alt="" src="https://cdn-images-1.medium.com/max/362/1*vUfuhKTyfkT6sUE8NZjBIg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3016748ddb3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teamsql/why-you-should-use-teamsql-instead-of-the-command-line-for-redis-e3016748ddb3">Why You Should Use TeamSQL Instead of the Command Line for Redis</a> was originally published in <a href="https://medium.com/teamsql">TeamSQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TeamSQL Charts: Pie Charts]]></title>
            <link>https://medium.com/teamsql/teamsql-charts-pie-charts-b485ddc78d2a?source=rss----1f89196825f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/b485ddc78d2a</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[pie-charts]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[charts]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Can Abacıgil]]></dc:creator>
            <pubDate>Sat, 28 Oct 2017 07:04:21 GMT</pubDate>
            <atom:updated>2017-10-28T07:04:21.017Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve been covering some of the new charting features in TeamSQL, and today, we’ll take a look at the pie chart. If you’re already familiar with how the basic charting functionality works in TeamSQL, read on, but if you aren’t, please take a look at our overview post.</p><p>In today’s example, we’ll be looking at the market share each of the major browsers held in the period from January to May of 2015. Here’s what our data looks like returned from the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6nX_RwlBIlM752UN." /></figure><p>We click on <strong>Charts </strong>to bring up the chart creation wizard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hW_3iKEwZK21BTrO." /></figure><p>Here’s what the chart for the settings shown in the screenshot above look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C4oQrzNCr_eUKiBr." /></figure><p>As always, I can <strong>save my chart as a PNG file </strong>or <strong>copy it to my clipboard </strong>for later use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jIJ1DvfrqeIIuERN." /></figure><p>Happy charting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b485ddc78d2a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teamsql/teamsql-charts-pie-charts-b485ddc78d2a">TeamSQL Charts: Pie Charts</a> was originally published in <a href="https://medium.com/teamsql">TeamSQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom Snippets]]></title>
            <link>https://medium.com/teamsql/custom-snippets-4b053436c5a7?source=rss----1f89196825f7---4</link>
            <guid isPermaLink="false">https://medium.com/p/4b053436c5a7</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[snippet]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Eren Baydemir]]></dc:creator>
            <pubDate>Sat, 28 Oct 2017 07:03:53 GMT</pubDate>
            <atom:updated>2017-10-28T07:04:16.172Z</atom:updated>
            <content:encoded><![CDATA[<p>TeamSQL has supported snippets for some time, but we’re introducing custom snippets to help you work more effectively.</p><h3>What are snippets?</h3><p>From our <a href="https://blog.teamsql.io/teamsql-snippets-ae8feb6eeaeb">snippets post</a>:</p><p><em>Snippets are templates that you can use to help you build longer queries. Because TeamSQL knows which database you’re working in, you’ll get the right snippet at the right time (if you work in multiple types of databases, you’ll know how easy it is to get similar-but-different syntaxes mixed up). Now, you’re less likely to run a query that works for MySQL against SQL Server (or vice versa).</em></p><p><em>If you can’t remember the specific syntax, Intellisense can help you out. You can “scroll” through the list of snippets using your arrow keys, and when you’ve found the one you’re interested in, press tab to populate your query window with the snippet. Additionally, if you don’t recall what a specific snippet should do, the drop-down list of snippets includes a brief definition.</em></p><h3>What are custom snippets?</h3><p>Rather than limiting you to snippets we think you’ll find useful, we’re allowing you to create your own snippets. For example, do you find yourself running a specific query early and often? Turn it into a snippet instead of copying and pasting from an external file.</p><h3>How to Create Custom Snippets</h3><p>There are currently two ways for you to create custom snippets:</p><ol><li>Using the <strong>Create Snippets</strong> option available in the main toolbar</li><li>Creating snippets on the fly by using the options menu</li></ol><p>We’ll cover how to use both options.</p><h3>Use the Create Snippets Option in the Toolbar</h3><p>In the main toolbar, go to <strong>Snippets </strong>&gt;<strong> Create Snippets</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/0*puoz23ev9_fi5UYQ." /></figure><p>This opens up the window you can use to create your snippet. You’ll be prompted for a <strong>name</strong>, <strong>description</strong>, and which database environment you want associated with your snippet (you can certainly create one that TeamSQL lets you use in any environment). Finally, you’ll provide your <strong>Snippet Text</strong>.</p><p>When you’re done making changes, click <strong>Save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/0*m62jnaJxQ8RGbbC3." /></figure><p>Your snippet is now ready to use.</p><h3>Creating Snippets on the Fly Using the Options Menu</h3><p>If you’re working in the TeamSQL editor and realize that you’re typing the same thing over and over again, you can create a snippet right then and there.</p><p>Highlight the text you’re working with, and right-click anywhere in the editor window. When the options menu appears, select <strong>Create Custom Snippet</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/0*kUFnkrMvJSUYcCrg." /></figure><p>This launches the snippet creation wizard, but notice that your <strong>Snippet Text</strong> area has been populated with your highlighted selection. This means that you only have to provide a <strong>name</strong>, <strong>description</strong>, and which database environment you want associated with your snippet (you can certainly create one that TeamSQL lets you use in any environment).</p><p>When you’re done making changes, click <strong>Save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*_RUb8LmeKUWIKUm2." /></figure><h3>Viewing Your Snippets</h3><p>You can view the snippets that you’ve created at any time using the <strong>Manage Snippets</strong> area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/0*xpcz_nksVfVS4kDw." /></figure><p>In addition to seeing a full list of your snippets, you can manage them. You can:</p><ul><li>Edit your snippets</li><li>Clone your snippets</li><li>Delete your snippets</li></ul><p>There’s also an option for you to create a new snippet from scratch at the top right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/0*e4x4LxsInkpY56nc." /></figure><h3>Summary</h3><p>TeamSQL now supports the creation and use of custom snippets, which is helpful when you find yourself writing the same query multiple times.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b053436c5a7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teamsql/custom-snippets-4b053436c5a7">Custom Snippets</a> was originally published in <a href="https://medium.com/teamsql">TeamSQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>