Pre-Join Projection with left-outer-join behaviour
Posted: Tue Feb 11, 2014 6:09 pm
Hi All,
I am new to vertica and I want to implement below case scenario with Pre-Join projection. Please suggest how can i achieve this.
I have two tables like FactA(CustomerID (PK),Units) &FactB(CustomerID (FK),Sales) and the data is avail like below:
FactA FactB
CustomeID Units CustomerID Sales
------------ ------ -------------- -------
1 10 1 100
2 20 2 200
3 30
i want to create a pre-join projection which can return below result set:
CustomerID Units Sales
--------------- ------ -------
1 10 100
2 20 200
3 30 0 or null
Please suggest
Regards
Sree
I am new to vertica and I want to implement below case scenario with Pre-Join projection. Please suggest how can i achieve this.
I have two tables like FactA(CustomerID (PK),Units) &FactB(CustomerID (FK),Sales) and the data is avail like below:
FactA FactB
CustomeID Units CustomerID Sales
------------ ------ -------------- -------
1 10 1 100
2 20 2 200
3 30
i want to create a pre-join projection which can return below result set:
CustomerID Units Sales
--------------- ------ -------
1 10 100
2 20 200
3 30 0 or null
Please suggest
Regards
Sree