Using OBIEE 11g.
In the BI Admin Tool, how can I relate a table with 3 other tables, when there is no column to link?
Here is the scenario:
tbl_car_sales
year salesperson sale_price
2012 John Doe 16000
2013 Sally Brown 19000
tbl_boat_sales
year salesperson sale_price
2012 Buster Brown 42000
2013 Chuck Brown 58000
tbl_motorcycle_sales
year salesperson sale_price
2012 Lucy Brown 8700
2013 Sandy Brown 10300
tbl_profit
type year profit
car 2012 500
car 2013 600
boat 2012 1200
boat 2013 1400
bike 2012 200
bike 2013 300
What I need is to have the sum of the sale price and the sum of the profit in the same report, grouped by year.
I cannot figure out how to relate the tables in the Physical layer, since the first 3 tables do not have a field to link to.
If tbl_car_sales had a "type" column that was hard-coded to 'car' for each record, that would work but that doesn't exist.
My end result should look like the following:
type year sale_price profit
car 2012 16000 500
car 2013 19000 600
boat 2012 42000 1200
boat 2013 58000 1400
bike 2012 8700 200
bike 2013 10300 300
Any help would be appreciated.