Using SQL to clean up CSI data

Has anyone had any luck using SQL to clean up CSI data that comes from TNEW custom forms?

We are using custom form data to collect information on our travel program participants when they register for a trip, which is great!  However, when you run a report on CSIs and export it, all the collected data comes across as one cell in excel.  I've used column splits in power query to separate everything out, but we'd love for the data to feed directly into a tableau, rather than being exported and then power queried.  I'm pretty new to SQL and completely self taught, so I didn't know if there was some way to make SQL do what the power query is doing.  The folks actually looking at and using the data don't use power query and only barely get into Tess for anything, so they currently can't get at the data themselves and certainly can't get it into a usable format.

Any advice would be appreciated! Slight smile

Thanks!

Parents
  • TNEW has a Carriage Return (char(13)) as the delimiter 

    SELECT value
    FROM STRING_SPLIT((select notes from t_cust_activity where activity_no = 18300), char(13))

    took my entry that looks like 

    Contact_details: HEATH WILDER PO BOX 1092 BROADWAY, NSW (227) 2007 Phone_num: +61414310104 Dietary_req: test Comments: Line Item ID: 44567 Customer Number: 183407 Order Number: 43360 

    and turns it into ...

    Contact_details: HEATH WILDER PO BOX 1092 BROADWAY, NSW (227) 2007
    Phone_num: +61414310104
    Dietary_req: test
    Comments:
    Line Item ID: 44567
    Customer Number: 183407
    Order Number: 43360

    Hope that helps

    (That's an old address for anyone who is planning on sending me a cake)

Reply
  • TNEW has a Carriage Return (char(13)) as the delimiter 

    SELECT value
    FROM STRING_SPLIT((select notes from t_cust_activity where activity_no = 18300), char(13))

    took my entry that looks like 

    Contact_details: HEATH WILDER PO BOX 1092 BROADWAY, NSW (227) 2007 Phone_num: +61414310104 Dietary_req: test Comments: Line Item ID: 44567 Customer Number: 183407 Order Number: 43360 

    and turns it into ...

    Contact_details: HEATH WILDER PO BOX 1092 BROADWAY, NSW (227) 2007
    Phone_num: +61414310104
    Dietary_req: test
    Comments:
    Line Item ID: 44567
    Customer Number: 183407
    Order Number: 43360

    Hope that helps

    (That's an old address for anyone who is planning on sending me a cake)

Children