Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)

  • Reply To: Create string from broken hierarchy

    SOLVED

    this (unedited) sql gives the expected result

    2020-10-06_18-47-22

     

    WITH CTE (id, parent) as

    (

    SELECT c.id, c.parent

    from

    (

    SELECT DISTINCT(id), parent

    FROM

    (

    select u.id, u.parent

    FROM

    (

    SELECT a.id, a.Loan_ID

    , COALESCE(b.id, a.id) AS id_b

    , COALESCE(c.Loan_ID, a.id) AS loan_id_c

    ,...

  • Reply To: Create string from broken hierarchy

    Hi jcelko212 32090

    Thanks for the comments

    1. this is the data that is given to me, no control
    2. each loan has a key, just not showing it here for legibility, result...
  • Reply To: Create string from broken hierarchy

    Hi Jeff

    thanks for replying, can't say how much I appreciate you taking an interest in this

    The proposed output correctly links the id's but (as in my own attempts) I get...

  • Reply To: Create string from broken hierarchy

    Hi Jeff

    thanks for reaching out

    I have added a script to load a temp table with a subset of my data.

    Note that I have removed [PARENTKEY] as this just is the...

Viewing 4 posts - 1 through 4 (of 4 total)