Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can tabulatr show data in a view? #34

Open
bruparel opened this issue Feb 3, 2012 · 0 comments
Open

Can tabulatr show data in a view? #34

bruparel opened this issue Feb 3, 2012 · 0 comments

Comments

@bruparel
Copy link

bruparel commented Feb 3, 2012

I have tabulatr showing data directly from the underlying database tables with one table being a master table which works fine.

However, a key business requirement is to show records that are combined from physically separate tables that are similar in structure (e.g, id, name, created_at, updated_at fields for example) but represent different entities (e.g., oil_price_indexes, gas_price_indexes, etc.)

I had combined them in one parent table and differentiated each record based on the "type" of resource (oil, gas for example). Now I have to deal with a situation where a child table (e.g. contracts), can reference an oil_price_index or a gas_price_index. That makes it necessary for me to have TWO foreign keys from the combined table (price_indexes) in the child table which I do not think is a good relational design (I am using Postgres).

Kindly let me know what can and cannot be done using tabulatr under such circumstance.

Thanks.

Bharat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant