<?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[SQL Server - Medium]]></title>
        <description><![CDATA[Data warehousing and business intelligence. - Medium]]></description>
        <link>https://medium.com/sql-server?source=rss----16fa51f24d71---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>SQL Server - Medium</title>
            <link>https://medium.com/sql-server?source=rss----16fa51f24d71---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:44:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/sql-server" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to identify similarly pronounced words in SQL server?]]></title>
            <link>https://medium.com/sql-server/how-to-identify-similarly-pronounced-words-in-sql-server-5b9c04d810f9?source=rss----16fa51f24d71---4</link>
            <guid isPermaLink="false">https://medium.com/p/5b9c04d810f9</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[Rajanand Ilangovan]]></dc:creator>
            <pubDate>Sat, 07 May 2022 16:21:23 GMT</pubDate>
            <atom:updated>2022-05-07T16:21:23.139Z</atom:updated>
            <content:encoded><![CDATA[<p>There are two functions in SQL Server that are used to identify whether the two strings are pronounced similarly or not.</p><p>They are</p><ul><li>SOUNDEX() - This function takes a string as parameter and returns a four-character code. This code is called as Soundex. When this code is calculated it basically ignores the vowels (A, E, I, O, U), H, W, and Y unless they are the first letter of the string.</li><li>DIFFERENCE() - This function takes two strings as parameter and returns a integer value from 1 to 4. This function internally calculates the <a href="https://docs.microsoft.com/en-us/sql/t-sql/functions/soundex-transact-sql">SOUNDEX</a> code for each of the string and find the difference between the two SOUNDEX code.</li></ul><pre>SELECT <br>SOUNDEX (&#39;SQL&#39;) AS SQL, <br>SOUNDEX (&#39;Sequel&#39;) AS Sequel,<br>DIFFERENCE(&#39;SQL&#39;, &#39;Sequel&#39;) AS Similarity;</pre><pre>SELECT <br>SOUNDEX (&#39;Michael Jackson&#39;) AS Michael_Jackson, <br>SOUNDEX (&#39;Mitchel Johnson&#39;) AS Mitchel_Johnson,<br>DIFFERENCE(&#39;Michael Jackson&#39;,&#39;Mitchel Johnson&#39;) AS Similarity;</pre><pre>SELECT <br>SOUNDEX (&#39;Ramesh&#39;) AS Ramesh, <br>SOUNDEX (&#39;Suresh&#39;) AS Suresh,<br>DIFFERENCE(&#39;Ramesh&#39;,&#39;Suresh&#39;) AS Similarity;</pre><pre>SELECT <br>SOUNDEX (&#39;Tamil&#39;) AS Tamil, <br>SOUNDEX (&#39;Malayalam&#39;) AS Malayalam,<br>DIFFERENCE(&#39;Tamil&#39;,&#39;Malayalam&#39;) AS Similarity;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*qgdXJGBL_ODkKsc4" /></figure><p>The output of the <a href="https://docs.microsoft.com/en-us/sql/t-sql/functions/difference-transact-sql">DIFFERENCE</a> function<br>1 - Not similar<br>2 - Very less similar<br>3 - Some what similar<br>4 - Exact match/ Mostly similar</p><p>If you like this question, you may also like these…</p><ul><li><a href="https://blog.rajanand.org/what-happens-to-the-records-inserted-into-a-table-variable-if-the-transaction-rollback">What happens to the records inserted into a table variable, if the transaction rollback?</a></li><li><a href="https://blog.rajanand.org/how-to-sort-result-set-in-custom-order-in-sql">How to sort result set in custom order in SQL?</a></li><li><a href="https://blog.rajanand.org/how-to-concatenate-values-from-previous-row-to-current-row-in-sql">How to concatenate values from previous row to current row in SQL?</a></li></ul><p><em>Originally published at </em><a href="https://blog.rajanand.org/how-to-identify-similarly-pronounced-words-in-sql-server"><em>blog.rajanand.org</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b9c04d810f9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sql-server/how-to-identify-similarly-pronounced-words-in-sql-server-5b9c04d810f9">How to identify similarly pronounced words in SQL server?</a> was originally published in <a href="https://medium.com/sql-server">SQL Server</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens to the records inserted into a table variable, if the transaction rollback?]]></title>
            <link>https://medium.com/sql-server/what-happens-to-the-records-inserted-into-a-table-variable-if-the-transaction-rollback-d69dd00dca53?source=rss----16fa51f24d71---4</link>
            <guid isPermaLink="false">https://medium.com/p/d69dd00dca53</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[table-variable]]></category>
            <category><![CDATA[transactions]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[t-sql]]></category>
            <dc:creator><![CDATA[Rajanand Ilangovan]]></dc:creator>
            <pubDate>Sun, 10 Apr 2022 04:47:47 GMT</pubDate>
            <atom:updated>2022-04-10T04:47:47.079Z</atom:updated>
            <content:encoded><![CDATA[<pre>DECLARE @People TABLE (first_name VARCHAR(50), age int);<br>BEGIN TRAN<br>INSERT INTO @People VALUES (&#39;John&#39;, 25);<br>INSERT INTO @People VALUES (&#39;Daniel&#39;, 30);<br><br>ROLLBACK<br><br>SELECT * FROM @People;</pre><h3>Answer:</h3><p>The records inserted into a table variable will not be affected by the transaction rollback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/0*wCjEGfYHsYqTuXBF" /></figure><p>Reference: <a href="https://twitter.com/BrentO/status/1296117565823934464">Brent Ozar</a></p><p>If you like this SQL interview question, you may also like the below interview question and answers.</p><ul><li><a href="https://blog.rajanand.org/what-happens-to-the-variable-value-set-during-the-transaction-if-its-rollback">What happens to the variable value set during the transaction, if its rollback?</a></li><li><a href="https://blog.rajanand.org/how-to-generate-permutations-in-sql">How to generate permutations in SQL?</a></li><li><a href="https://blog.rajanand.org/how-to-calculate-total-travel-hours-between-city-x-and-y-and-vice-versa">How to do reciprocal in SQL?</a></li><li><a href="https://blog.rajanand.org/how-to-find-an-account-balance-in-sql">How to find account balance (running total) in SQL?</a></li></ul><p><em>Originally published at </em><a href="https://blog.rajanand.org/what-happens-to-the-records-inserted-into-a-table-variable-if-the-transaction-rollback"><em>blog.rajanand.org</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d69dd00dca53" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sql-server/what-happens-to-the-records-inserted-into-a-table-variable-if-the-transaction-rollback-d69dd00dca53">What happens to the records inserted into a table variable, if the transaction rollback?</a> was originally published in <a href="https://medium.com/sql-server">SQL Server</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens to the variable value set during the transaction, if its rollback?]]></title>
            <link>https://medium.com/sql-server/what-happens-to-the-variable-value-set-during-the-transaction-if-its-rollback-578a4208bd6d?source=rss----16fa51f24d71---4</link>
            <guid isPermaLink="false">https://medium.com/p/578a4208bd6d</guid>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[t-sql]]></category>
            <category><![CDATA[transactions]]></category>
            <dc:creator><![CDATA[Rajanand Ilangovan]]></dc:creator>
            <pubDate>Tue, 05 Apr 2022 20:38:39 GMT</pubDate>
            <atom:updated>2022-04-05T20:38:39.571Z</atom:updated>
            <content:encoded><![CDATA[<pre>DECLARE @my_age INT = 20;<br><br>BEGIN TRAN<br>SET @my_age += 30;<br>ROLLBACK;<br><br>SELECT @my_age;</pre><h3>Answer:</h3><p>Even though the transaction is rolled back, the value set to the variable remains same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*dN-smdYje4zSf-0Z" /></figure><blockquote><em>Changes to variables aren’t affected by the rollback of a transaction.</em></blockquote><p>Reference: <a href="https://docs.microsoft.com/en-us/sql/t-sql/language-elements/variables-transact-sql">Microsoft docs</a> &amp; <a href="https://twitter.com/BrentO/status/1296117565823934464">Brent Ozar</a></p><p>If you like this SQL interview question, you may also like the below interview question and answers.</p><ul><li><a href="https://blog.rajanand.org/how-to-calculate-total-travel-hours-between-city-x-and-y-and-vice-versa">How to do reciprocal in SQL?</a></li><li><a href="https://blog.rajanand.org/how-to-generate-permutations-in-sql">How to generate permutations in SQL?</a></li><li><a href="https://blog.rajanand.org/how-to-find-an-account-balance-in-sql">How to find account balance (running total) in SQL?</a></li><li><a href="https://blog.rajanand.org/what-happens-to-the-records-inserted-into-a-table-variable-if-the-transaction-rollback">What happens to the records inserted into a table variable, if the transaction rollback?</a></li></ul><p><em>Originally published at </em><a href="https://blog.rajanand.org/what-happens-to-the-variable-value-set-during-the-transaction-if-its-rollback"><em>blog.rajanand.org</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=578a4208bd6d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sql-server/what-happens-to-the-variable-value-set-during-the-transaction-if-its-rollback-578a4208bd6d">What happens to the variable value set during the transaction, if its rollback?</a> was originally published in <a href="https://medium.com/sql-server">SQL Server</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to sort result set in custom order in SQL?]]></title>
            <link>https://medium.com/sql-server/how-to-sort-result-set-in-custom-order-in-sql-f7482a92099c?source=rss----16fa51f24d71---4</link>
            <guid isPermaLink="false">https://medium.com/p/f7482a92099c</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[questions]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Rajanand Ilangovan]]></dc:creator>
            <pubDate>Tue, 22 Feb 2022 18:48:20 GMT</pubDate>
            <atom:updated>2022-02-22T18:46:12.350Z</atom:updated>
            <content:encoded><![CDATA[<h3>Question:</h3><p>Write a SQL query to display the result in custom sort order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*pxNFCvTQVOMNqkAN" /></figure><h3>Answer:</h3><p>If you need to display the result in ascending or descending order you can achieve the same directly using asc or desc keyword in order byclause. But if you need to display it in custom order in report, you can use the case expression to do it.</p><pre>-- solution: custom ordering in sql server<br>select city_name<br>from dbo.city<br>order by case when city_name = ‘Helsinki’ then 10<br> when city_name = ‘Copenhagen’ then 20<br> when city_name = ‘Stockholm’ then 30<br> else 100 end</pre><p>If you check the case expression result below, I have used the numbers 10, 20 etc. But it does not matter. You can use number or letters in ascending order to display the result in ascending order.</p><p>If you like this SQL interview question, you may also like the below scenario based interview question and answers.</p><h4><a href="https://blog.rajanand.org/how-to-generate-permutations-in-sql">How to generate permutations in SQL?</a><br><a href="https://blog.rajanand.org/how-to-calculate-total-travel-hours-between-city-x-and-y-and-vice-versa">How to do reciprocal in SQL?</a><br><a href="https://blog.rajanand.org/how-to-find-an-account-balance-in-sql">How to find account balance (running total) in SQL?</a></h4><p><em>Originally published at </em><a href="https://blog.rajanand.org/how-to-sort-result-set-in-custom-order-in-sql"><em>blog.rajanand.org</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7482a92099c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sql-server/how-to-sort-result-set-in-custom-order-in-sql-f7482a92099c">How to sort result set in custom order in SQL?</a> was originally published in <a href="https://medium.com/sql-server">SQL Server</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to properly install SQL Server?]]></title>
            <link>https://medium.com/sql-server/how-to-properly-install-sql-server-1270f135f100?source=rss----16fa51f24d71---4</link>
            <guid isPermaLink="false">https://medium.com/p/1270f135f100</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[configuration]]></category>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[Rajanand Ilangovan]]></dc:creator>
            <pubDate>Mon, 14 Feb 2022 08:02:28 GMT</pubDate>
            <atom:updated>2022-02-14T08:02:28.661Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iyWy9D2baZywjPclRpJUHg.png" /></figure><p><em>Originally published at </em><a href="https://blog.rajanand.org/how-to-install-sql-server"><em>blog.rajanand.org</em></a><em>.</em></p><p>In this tutorial, We will install the SQL Server 2019 developer edition in windows 10. This developer edition is a full-featured <strong>free</strong> edition, licensed to use in a non-production environment for development and test database.</p><p>The installation step will be mostly same for the different versions (i.e, 2014, 2017 etc) and editions (i.e., Express, Standard, Enterprise etc).</p><p>Go to SQL Server downloads page and click “ <a href="https://www.microsoft.com/en-IN/sql-server/sql-server-downloads">Download now</a> “ under Developer edition or you can just directly click <a href="https://go.microsoft.com/fwlink/?linkid=866662">here</a> .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bkoDlb54c0-gYXLZ" /></figure><p>Installer will be downloaded. Double click the installer to start the installation process.</p><p>Click “Custom” as the installation type as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/0*tmNcTbcCkMnwGgSd" /></figure><p>This will download the SQL Server software with size about 1.5GB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/0*6eW6oUECPL93vvnj" /></figure><p>Click “Installation” as this is the first time we are going to install SQL Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/0*9QrSUxUV1tmJN8EG" /></figure><p>Click the first option “New SQL Server stand-alone installation”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/0*o-0gpDGCxNo4G70y" /></figure><p>Leave the default option “Developer” edition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/0*jNYUZm9D0ghGMLTZ" /></figure><p>Accept the license terms and privacy statements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/0*hxxt13DRFPWsPggx" /></figure><p>Check the Install rules. If there are any issue, read the error message and fix that. If there are no error messages, and just a warning message is there like below, then that is fine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/0*aMaxJWMkcvkcSI00" /></figure><p>Select only the “Database engine service” in feature selection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/0*_CMUkbxxVsmrwBxg" /></figure><p>Leave the default SQL Server instance Id/name. (i.e., MSSQLSERVER) and click Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/0*zflghdV_mAoHJt4d" /></figure><p>Click Next on the service accounts configuration page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/0*Ki2DdkWS9DW6g4Jy" /></figure><p>In Database engine configuration select Mixed mode (SQL Server authentication and Windows authentication) as authentication. By using this mixed mode, you will be able to login to the SQL Server instance with your current windows login and with username and password.</p><p>Enter any strong password that you can remember for SQL Server authentication method.<br>User name: sa<br>Password: AnyPasswordThatYouDontForget<br>Then click &quot;Add current user&quot; to add the currently logged-in user as administrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/0*5RmRyzcKEGx2WbeB" /></figure><p>Review it once and then click “Install”. This step will take some time to complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*XBcbfddG-YrJ21px" /></figure><p>Installation process may take from 15 to 30 min to complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/0*-flZWzzUGNeRImOu" /></figure><p>Once installation completes, you should see the message like below. Then you can close it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/0*xaM8LCfgl743EYaI" /></figure><p>Now, you may open SQL Server Management Studio and login to the server.</p><p>If you have enjoyed this article or this article has helped you to save time, consider buy me a <a href="https://buymeacoffee.com/Rajanand">coffee</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1270f135f100" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sql-server/how-to-properly-install-sql-server-1270f135f100">How to properly install SQL Server?</a> was originally published in <a href="https://medium.com/sql-server">SQL Server</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>