Tangra Inc.
  • HOME
  • SERVICES
  • PRODUCTS
  • BLOG
  • CONTACT US
  • Search
  • Menu Menu
  • The Wisdom of the Geeks

    Random Ramblings About Technology

Plamen Ratchev

Obscure Real Data for Testing

April 2, 2008/1 Comment/in SQL Server, XML/by Plamen Ratchev

Very often we have a good set of production data but it cannot be used for training or testing because of data confidentiality. And the solution sometimes is just to tweak pieces of the data so it cannot be linked to the original data. Here is one method for obscure data in SQL Server 2005. […]

Read more
https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png 0 0 Plamen Ratchev https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png Plamen Ratchev2008-04-02 16:05:002017-02-07 15:18:52Obscure Real Data for Testing
Plamen Ratchev

UPSERT and More with MERGE

March 25, 2008/3 Comments/in SQL Server/by Plamen Ratchev

One very common requirement is to merge source data to a target table. For example, merge the daily changes to accounts data from branch office table to central accounts table. On SQL Server version 2005 and prior this was accomplished using separate INSERT and UPDATE statements. This involved checking if key column exists to perform […]

Read more
https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png 0 0 Plamen Ratchev https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png Plamen Ratchev2008-03-25 10:16:002017-02-11 07:53:36UPSERT and More with MERGE
Plamen Ratchev

Row Concatenation with FOR XML PATH

March 22, 2008/8 Comments/in SQL Server, XML/by Plamen Ratchev

Many times it is needed for reporting purposes to summarize normalized data into groups or lists of values. This is also known as rows concatenation. Some reporting and client side tools support this directly. Here is one approach to solve this in T-SQL using FOR XML PATH. CREATE TABLE Products ( sku INT PRIMARY KEY, product_desc VARCHAR(35)); CREATE […]

Read more
https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png 0 0 Plamen Ratchev https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png Plamen Ratchev2008-03-22 13:21:002017-02-11 07:54:07Row Concatenation with FOR XML PATH
Plamen Ratchev

Grouping with ROW_NUMBER

March 14, 2008/2 Comments/in SQL Server/by Plamen Ratchev

The new ranking functions in SQL Server 2005 have great impact on how problems can be solved. Here is just another example of that. Given a table with events at different venues (all event dates are unique), find the duration intervals of start/end date of uninterrupted performances at a given venue. Solving this without the […]

Read more
https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png 0 0 Plamen Ratchev https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png Plamen Ratchev2008-03-14 09:08:002017-02-11 07:54:33Grouping with ROW_NUMBER
Plamen Ratchev

Updates with CTE

March 12, 2008/7 Comments/in SQL Server/by Plamen Ratchev

Performing updates on columns based on values from another table is a very common need. Using the ANSI UPDATE normally requires multiple subqueries, which can be very inefficient especially if multiple filters have to be applied. The Microsoft specific UPDATE with JOIN is one solution. However, common table expressions provide a very elegant alternative, which […]

Read more
https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png 0 0 Plamen Ratchev https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png Plamen Ratchev2008-03-12 14:08:002017-02-07 15:20:28Updates with CTE
Plamen Ratchev

Extracting List Item from Delimited String

March 3, 2008/1 Comment/in CLR, SQL Server/by Plamen Ratchev

Performing string manipulations is not the best use of T-SQL. But there are a lot of operations that can be done using pure SQL. Here is one example. Given an input string that has list elements separated by delimiter, slice the list into individual element, and provided index parameter return the matching item based on […]

Read more
https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png 0 0 Plamen Ratchev https://www.tangrainc.com/wp-content/uploads/2017/02/tangra-logo3.png Plamen Ratchev2008-03-03 10:05:002017-02-07 15:15:30Extracting List Item from Delimited String
Page 10 of 17«‹89101112›»

Categories

  • .NET Framework
  • best practices
  • Binding
  • books
  • CLR
  • Cryptography
  • Custom User Controls
  • Excel
  • LINQ
  • mobile
  • NativeScript
  • obfuscation
  • PASS
  • Security
  • Silverlight
  • SQL Server
  • sql server compact
  • SQLRally
  • SQLSaturday
  • WCF
  • WPF
  • XAML
  • XML

Archives

  • August 2018
  • June 2017
  • March 2017
  • February 2017
  • April 2016
  • March 2016
  • October 2011
  • May 2011
  • February 2011
  • January 2011
  • October 2010
  • August 2010
  • July 2010
  • February 2010
  • January 2010
  • August 2009
  • June 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007

SITE MAP

  • HOME
  • SERVICES
  • PRODUCTS
  • BLOG
  • CONTACT US
  • TERMS
  • PRIVACY

SEARCH

Copyright © 2025 Tangra Inc.
Scroll to top