﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.0"><channel><title>SQLServerCentral.com Content tagged T-SQL, Advanced Querying</title><link>http://www.sqlservercentral.com/</link><description>Content tagged T-SQL, Advanced Querying posted on SQLServerCentral.com</description><language>en-us</language><ttl>360</ttl><managingEditor>sjones@sqlservercentral.com (Steve Jones)</managingEditor><item><title>A Sudoku solution with set based T-SQL utilizing binary operators.</title><description>A Sudoku solution with set based T-SQL approach utilizing binary values and operators, to ease the algorithm.</description><guid>http://www.sqlservercentral.com/scripts/T-SQL/62978/</guid><pubDate>2008/04/30</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/62978/</link></item><item><title>Everybody Reports to Somebody</title><description>One of the very common questions posted about T-SQL is how to traverse a hierarchy in a set based manner. New author Craig Hatley brings us his techniques for handling the common scenario of employees and managers.
</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/3001/</guid><pubDate>2007/06/04</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/3001/</link></item><item><title>Converting Hexadecimal String Values to Alpha (ASCII) Strings</title><description>In an interesting exercise in data conversion, Stephen Lasham brings us a nice article on basic manipulations.
</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/2969/</guid><pubDate>2008/04/25</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/2969/</link></item><item><title>Discover Unique Columns</title><description>Tool to automatically query combinations of columns in your table to determine candidate for unique key.</description><guid>http://www.sqlservercentral.com/scripts/T-SQL/62086/</guid><pubDate>2008/04/16</pubDate><link>http://www.sqlservercentral.com/scripts/T-SQL/62086/</link></item><item><title>CASE function in SQL Server – part II</title><description>Part I of this series illustrated how to use simple case functions in queries. This installment discusses how to use case functions in different types of scenarios.</description><guid>http://www.sqlservercentral.com/redirect/articles/2952/</guid><pubDate>2008/04/04</pubDate><link>http://www.sqlservercentral.com/redirect/articles/2952/</link></item><item><title>Gotcha! SQL Aggregate Functions and NULL</title><description>Working with NULL functions can be tricky in T-SQL and SQL Server 2000. If you add in aggregates, you need to be sure you understand what the behavior will be or you might report incorrect values to a user. Michael Coles has written a new article that talks about how NULL affects your results.


</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/gotchasqlaggregatefunctionsandnull/1947/</guid><pubDate>2008/04/04</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/gotchasqlaggregatefunctionsandnull/1947/</link></item><item><title>Four Rules for NULLs</title><description>In SQL Server 2000 or any relational database, the concept of NULL can be both confusing and hazardess to your employment. Not understanding how to work with NULLs can lead to incorrect responses to queries and poor business decisions being made. New author Michael Coles brings us four rules that can help you work with NULL values in your tables.

</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/fourrulesfornulls/1915/</guid><pubDate>2008/03/28</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/fourrulesfornulls/1915/</link></item><item><title>The Truth Table</title><description>Truth tables are an important part of working with logical values in SQL Server. Yousef Ekhtiari brings us some T-SQL that can help you construct those many variable truth tables and ensure you are getting the results you expect.
</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/2903/</guid><pubDate>2008/03/07</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/2903/</link></item><item><title>Keyword Searching in SQL Server</title><description>Have you ever wanted to ensure that keywords in your data are easily searchable? Have you struggled with full-text search? New author Michael Ahmadi brings us an interesting idea for a keyword tracking and searching subsystem based on T-SQL and triggers.
</description><guid>http://www.sqlservercentral.com/articles/Miscellaneous/2875/</guid><pubDate>2008/02/21</pubDate><link>http://www.sqlservercentral.com/articles/Miscellaneous/2875/</link></item><item><title>Storing IPs in SQL Server</title><description>An IP address is something we all recognize and is a piece of data that is quite prevalent in many systems. However it is a piece of 
data tha presents some challenges in its storage and retrieval. SQL Server guru David Poole presents us with a look at how you can 
work with this strange formatting.
</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/2871/</guid><pubDate>2008/02/19</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/2871/</link></item><item><title>The ARRAY In SQL Server 2000</title><description>SQL Server 2000 and Transact-SQL have many features, but one of the most often asked for features has been the implementation of some sort of array data type. This basic programming concept is notably absent from the development platform and results in many headaches and frustrations for DBAs. New author Alex Grinberg brings us his techniques for simulating arrays in SQL Server 2000.

</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/thearrayinsqlserver2000/1886/</guid><pubDate>2008/02/15</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/thearrayinsqlserver2000/1886/</link></item><item><title>Tame Those Strings - Finding Carriage Returns</title><description>Expanding on his series of string manipulation in T-SQL, Steve Jones takes a look at how you go about removing those unseen characters from your strings.
</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/2843/</guid><pubDate>2008/02/04</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/2843/</link></item><item><title>Solving the "Running Total" &amp; "Ordinal Rank" Problems in SS 2k/2k5</title><description>There are many methods to do Running Totals and most are either slow to terribly slow or just unreliable.  Here's the right way to do very high speed Running Totals.  </description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/61716/</guid><pubDate>2008/01/31</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/61716/</link></item><item><title>NULL Versus NULL?</title><description>Dealing with NULL data is something that often confuses new SQL Server developers, but even experienced DBAs might not understand all the intricacies of NULL operations. In a follow up to his highly acclaimed Four Rules of Null article, Michael Coles brings us a few new 
tricks with NULLs.


</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/2829/</guid><pubDate>2008/01/25</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/2829/</link></item><item><title>When To Use Cursors</title><description>Most SQL Server DBAs have been taught that cursors are bad and should not be used. However there are some cases and places where they might be useful. SQL Server guru Andy Warren brings us an example of where they may be handy.
</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/2785/</guid><pubDate>2008/01/03</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/2785/</link></item><item><title>Creative Ways to Use the TOP Clause</title><description>Gregory Larsen discusses how to use the TOP clause to help solve requests where you want to restrict the number of records returned based on a record count.</description><guid>http://www.sqlservercentral.com/redirect/articles/2778/</guid><pubDate>2007/12/27</pubDate><link>http://www.sqlservercentral.com/redirect/articles/2778/</link></item><item><title>Hidden RBAR: Triangular Joins</title><description>Just because it looks set based, doesn't mean it is. T-SQL Crackerjack Jeff Moden takes a look at a mistake that many query writers make.</description><guid>http://www.sqlservercentral.com/articles/T-SQL/61539/</guid><pubDate>2007/12/06</pubDate><link>http://www.sqlservercentral.com/articles/T-SQL/61539/</link></item><item><title>Running totals in SQL Server queries</title><description>How often do you need to keep a total of all previous rows values when you run a query? This article shows you how you can achieve this.</description><guid>http://www.sqlservercentral.com/redirect/articles/2702/</guid><pubDate>2007/11/23</pubDate><link>http://www.sqlservercentral.com/redirect/articles/2702/</link></item><item><title>NULL Versus NULL?</title><description>Dealing with NULL data is something that often confuses new SQL Server developers, but even experienced DBAs might not understand all the intricacies of NULL operations. In a follow up to his highly acclaimed Four Rules of Null article, Michael Coles brings us a few new 
tricks with NULLs.


</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/2829/</guid><pubDate>2008/01/25</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/2829/</link></item><item><title>The Puzzle of 'Rating Decomposition'</title><description>When reading rating information, how do you you knew how many points each separate voter gave if you only know the average rating and the number of votes? Well, you might be surprised to learn that you can figure it out using SQL</description><guid>http://www.sqlservercentral.com/redirect/articles/3241/</guid><pubDate>2007/10/01</pubDate><link>http://www.sqlservercentral.com/redirect/articles/3241/</link></item><item><title>Conditional Statements in WHERE Clauses</title><description>T-SQL is a powerful language, enabling you to handle many different types of set based operations. But having flexible WHERE clauses isn&amp;#39;t something that many DBAs deal with on a daily basis. New Author Sotiris Filippidis brings us an article on how you can structure a WHERE clause to handle all types of strange business logic without using dynamic SQL. Read on to  learn more about his technique.


</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/conditionalstatementsinwhereclauses/1436/</guid><pubDate>2007/09/28</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/conditionalstatementsinwhereclauses/1436/</link></item><item><title>Avoid enclosing Indexed Columns in a Function in the WHERE clause</title><description>When a function is wrapped around an indexed column in the WHERE clause it will usually prevent the proper usage of that index. This article gives an example and discusses what other options are available.</description><guid>http://www.sqlservercentral.com/redirect/articles/3251/</guid><pubDate>2007/09/27</pubDate><link>http://www.sqlservercentral.com/redirect/articles/3251/</link></item><item><title>Working with Datetime</title><description>Datetime data in SQL Server can be a little confusing to work with, especially as many front end languages do not combine the date and time into a single datatype. As a result, T-SQL is sometimes used to manipulate and convert datetime data into more useable formats. Author Leo Peysakhovich has written about some tricks that he uses to reformat and work with datetime data.


</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/workingwithdatetime/1634/</guid><pubDate>2007/09/21</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/workingwithdatetime/1634/</link></item><item><title>SQL Server 2008 - The Power of Merge</title><description>We have a first look at one of the features in SQL Server 2008 that was cut from SQL Server 2005, but which has been highly anticipated. How many times have you written an &amp;quot;insert new, update match&amp;quot; routine? Jacob Sebastion shows us easy this becomes with the new MERGE keyword in SQL Server 2008.

</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/3122/</guid><pubDate>2007/09/11</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/3122/</link></item><item><title>Calculating Work Days</title><description>How many times have you wished that there was a parameter for DATEPART to allow you to check for workdays? While many of us may get stuck working 6 or 7 days a week, most of the world revolves on a 5 day work week. Monday through Friday. New author Jeff Moden brings us a method of easily calculating the number of workdays between any two dates.

</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/calculatingworkdays/1660/</guid><pubDate>2007/09/07</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/calculatingworkdays/1660/</link></item><item><title>Server Side Paging With SQL Server 2005</title><description>One of the more common requests of an application working with SQL Server is to deal with pages, or sections, or data rather than an entire result set. Often an application retreives the entire result set and then only shows the user a few records, repeating the process with the next page. Regular columnist Jacob Sebastian brings us a more efficient method of implementing paging in SQL Server 2005.
</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/3181/</guid><pubDate>2007/08/29</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/3181/</link></item><item><title>Getting Random Results</title><description>One common need that DBAs run into is building a report that returns data in some random order. Especially if you&amp;#39;re doing some type of contest, like giving something away at your User Group meeting. Andy Warren brings us a short article on this with a look at the performance impact of randomly ordering results.
</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/3175/</guid><pubDate>2007/08/23</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/3175/</link></item><item><title>How to link different data sources together</title><description>Describes how you can link SQL Server with many different data sources like a directory as Active Directory Application Mode, a Microsoft Indexing Server catalog, a Microsoft Access database and a Microsoft Excel spreadsheet. Also explains how to query linked servers using the OPENQUERY command.</description><guid>http://www.sqlservercentral.com/redirect/articles/3171/</guid><pubDate>2007/08/21</pubDate><link>http://www.sqlservercentral.com/redirect/articles/3171/</link></item><item><title>RBAR: 'Row By Agonizing Row' </title><description>Remi Gregoire describes one of the Support nightmares, the vice of RBAR Database Programming, &amp;#39;Row By Agonising Row&amp;#39;, and illustrates how the effect of RBAR can sometimes be felt only years after an application is released, when the database supporting the application grows. </description><guid>http://www.sqlservercentral.com/redirect/articles/3154/</guid><pubDate>2007/08/16</pubDate><link>http://www.sqlservercentral.com/redirect/articles/3154/</link></item><item><title>Working with Time Frames in T-SQL</title><description>There is often a need to work with time data representing various events and then reporting on them in SQL Server applications. However T-SQL doesn&amp;#39;t necessarily make this easy. However new author Joe Lynds brings us an article on some advanced T-SQL to do just that.
</description><guid>http://www.sqlservercentral.com/articles/Advanced+Querying/3136/</guid><pubDate>2007/08/15</pubDate><link>http://www.sqlservercentral.com/articles/Advanced+Querying/3136/</link></item></channel></rss>