• Regular Expression to Replace String

    By parsing JSON array, you get values in brackets and double quotas and might need to make the string more human readable. Regular expression REGEXP_REPLACE can be used for it in your sql. Input string: [“Blue”], [“Pink”], [“Black”] Output string: Blue; Pink; Black Action: Get rid of brackets with double quotas and replace comma by…

  • Regular Expression in Notepad++ to Release Space

    Find what: [ ]+’ Replace with: ‘ Search Mode: Regular expression It means: Replace all repeating space characters adjacent to single quote by single quote. [ ]+ =collect spaces [ ]+’ =collect spaces adjacent to single quote Similarly you can use ‘[ ]+ to collect spaces following single quote.

  • Teradata Full Outer Join vs Union All

    If we want to combine data about same information from two sources, we can think of using two sql approaches: Full Outer Join shows better performance statistics in all 3 aspects: CPU, IO and Spool. Let’s say we have orders with customer info from two different data sources. Both are relevant data sets, some orders are only…

  • Teradata Unpivot

    Teradata Unpivot

    Un-pivot aka transpose from columns to rows using SQL or UNPIVOT Teradata function. Data preparation: Solution using SQL Solution using Teradata UNPIVOT function

  • Teradata Pivot

    Teradata Pivot

    Transpose from rows into columns by using sql or pivot database function. Data preparation: Solution using SQL Solution using Teradata PIVOT function

  • Teradata SQL Recursive vs Regexp Split to Table

    Solution using regexp split to table Solution usineg SQL WITH RECURSIVE

  • Hello world!

    Hello world!

    Welcome to WordPress. This is your first post. Edit or delete it, then start writing!