cancel
Showing results for 
Search instead for 
Did you mean: 

How to Create a Cross JOIN without using MV or Incorta SQL

Hi All,

As per the company policy, we are not supposed to use Meterialized View(except Bridge table) and Incorta SQL for any data mapping logic.  

I have two tables INVOICE_PAYMENTS and INVOICE_DISTRIBUTIONS. The INVOICE_ID is the Join Key for these two tables. But the INVOICE_ID is not a unique value column. Both tables has multiple INVOICE_ID’s.

Us per the requirement, we need show all the records from both tables. So how to do the Cross Join for these two tables without using any SQL logic/concept.

I can achieve this requirement using Meterialized View, Incorta SQL or Business View(SQL) but we don't want to use these concepts.

Can anyone help me on this?

Below is sample. 

INVOICE_DISTRIBUTIONS 
INVOICE_DISTRIBUTIONS_IDINVOICE_ID
101
111
121
132
143
153

 

INVOICE_PAYMENTS 
INVOICE_PAYMENTS_IDINVOICE_ID
11
21
32
42
53
63

 

Required Output  
INVOICE_DISTRIBUTIONS_IDINVOICE_PAYMENTS_IDINVOICE_ID
1011
1021
1111
1121
1211
1221
1332
1342
1453
1563
1453
1563

 

2 REPLIES 2

JoeM
Community Manager
Community Manager

@Maran_Rengasamy - Thank you for the detail explanation. A cross-join can not be achieved without a MV or a SQL View. 

Hi Joe,

Thanks for the confirmation.