Forum Replies Created

Viewing 15 posts - 646 through 660 (of 1,233 total)

  • RE: Joining 2 Tables with Or condition

    Eirikur Eiriksson (1/11/2016)


    Hugo Kornelis (1/11/2016)


    GilaMonster (1/10/2016)


    Sure, with the same general idea.

    t1 INNER JOIN t2 on t1.Col1 = t2.Col2 OR t1.Col1 = t2.Col3 OR t1.Col1 = T2.Col4

    Don't know what the performance...

  • RE: the use of CTEs

    Sergiy (1/5/2016)


    When data modification logic is extremely complex I would not come anywhere near a CTE.

    It's like updating a view - it might work or might not work, but some...

  • RE: Help with sql query

    Or if you want to make this look more to what you may be familiar with, drawing off of your example ,

    USE tempDB;

    GO

    /* ----------------------------- */

    CREATE TABLE #stakeholder_notes(

    note_id INTEGER NOT...

  • RE: Help with sql query

    Great, Sean's example solves this. You can refer to his last post.

  • RE: Help with sql query

    sartis (1/5/2016)


    MMartin1 (1/5/2016)


    You provided sample data and the tables structure. Can you also provide what you want the final output to look like? We may be able to fill in...

  • RE: Help with sql query

    You provided sample data and the tables structure. Can you also provide what you want the final output to look like? We may be able to fill in the gap...

  • RE: the use of CTEs

    I prefer CTEs when one recordset depends on the prior. This could be potentially quite confusing with multiple subqueries

    With Cte0 as

    (

    SELECT /* some record set */

    ),

    Cte1 as

    (

    SELECT /* ..*/

    FROM...

  • RE: Does anyone know what this verbage means ?

    If you right click a column in a table, and choose properties >

    you will see a node for 'Extended Properties.' Here you define what you want to add to...

  • RE: Best way to merge two large client databases

    Aside from the task of somehow accounting for the same client across the two databases potentially, a thought I have is that in theory you can load the ids for...

  • RE: CLR Yes or no?

    Solomon Rutzky (12/29/2015)


    Eric M Russell (12/26/2015)


    Well, im still not sure about RegEx in a data warehouse. Parsing text columns suggests things like product descriptions were not identified by category in...

  • RE: Dynamic Query issue

    Re1 (12/29/2015)


    Thanks Luis it works fine

    Hi, did you make use of the "DelimitedSplit8K" function?

  • RE: Number VS Letter

    My first impression when I see these restrictions is, if this is a test or homework question for a class.

  • RE: The Most Common Query Blunders...

    Jeff Moden (12/25/2015)


    I believe my favorite non-SARGable problems are due to the inappropriate use of "OR" and things like the following...

    WHERE ISNULL(SomeNumericColumn,0) > 0

    ...

    WHERE ISNULL(SomeCharacterColumn,' ')...

  • RE: The Most Common Query Blunders...

    Jeff Moden (12/28/2015)


    Alan.B (12/28/2015)


    Someone beat me to it but NOLOCK table hints are the #1 mistake I have seen.

    Heh... apparently, thousands of people agree with you. Instead, they...

  • RE: Best way to merge two large client databases

    Eric M Russell (12/30/2015)


    Orlando Colamatteo (12/30/2015)


    Eric, agree it's not a ton more but Phil expressed it in more detail. This is basically my thoughts on it and where my comment...

Viewing 15 posts - 646 through 660 (of 1,233 total)