I have set up a view on a legacy table containing order items. In my program, I want to distinguish between phone orders, wifi orders, internet orders, and miscellaneous orders. The legacy table doesn't have a discriminator column, however, you can group the orders by their product code string. Is there a way of creating a table-per-hierarchy from this design?
Example:
- Phone codes: 30000-01, 30000-02, 30000-05, ...
- Wifi codes: 30000-17, 30000-52, ...
- etc.
Edit: I still need an order view showing all of these orders for the department listed as well.