I have table A and Table
Table A has below data
when i join table A(Child) with Table B(Parent) on inv_id = pr_id i'm getting i'm getting single parent record
how can i get all the sub_prd_id id details mapped each prd_name in incorta?
i'm getting it with materialised view , is there any other solution to achive it.
i don't have any key columns in these table.
what i'm trying to achive is if there are multiple records for a single product_id , if i join the table with inv_id(have same value as product_id) , for a single inv_id has multiple items , how could we achive it with out bridge table?
Ah - sorry - my first look at the table was too quick!
I don't believe you can force the Incorta query engine to do that between the two tables.
As you pointed out you'll need an MV ( or maybe a derived table - I don't have access to an environment to do a quick test at the moment ).
You could write a SQL statement into a single Incorta table using a SQL Database source, but I'm not sure you'd see much advantage to doing that unless you truly are never going to need tables A and B.
Here are two other solutions in Incorta:
Using Incorta SQL Table.
Business Schema - SQL view
This is a new feature in Incorta.
Here are the results:
For the above solutions, I'm using Incorta Cloud Release: 2022.4.0.
Please let me know if these two solutions work for you.
Feel free to let me know If you have any other questions.