Anyone else wanting to join to the same table multiple times in a view?

WHM
WHM Contributor

I have a dataset with regional director id, regional vp id and senior vp id and I want to join to my employee master on each of them but you can only bring the table in once. it would be really convenient to be able to use a view rather than a dataflow.

Best Answer

Answers

  • You could make duplicate views and bring those in as additional datasets to join twice more.

    If I solved your problem, please select "yes" above

  • WHM
    WHM Contributor

    @ColemenWilson That is an interesting thought… but I need to join it back 9 times…. SAP Vistex tables are really a pain.

  • ColemenWilson
    Answer ✓

    Figured it out, but you'll have to use the Advanced SQL Editor in dataset views. Once a dataset view is converted to an Advanced SQL dataset view it cannot be reverted back. https://domo-support.domo.com/s/article/360046074774?language=en_US#advanced_sql_editor

    If I solved your problem, please select "yes" above

  • WHM
    WHM Contributor

    @ColemenWilson I also learned the SQL editor is the way to test SQL you are passing to the CLI tool. The syntax is not obvious and the error messages are useless. I was trying to pass a where column is not null to a CLI export and finally found it needs to be where column != null. At least I think that was it. I had not wanted to use the SQL editor because it says you will not be able to go back but you can just cancel and not save after testing your SQL. OH, and the SQL editor answers the original question but I do not see a "yes" button for that answer.