I have this huge denormalized "product" table in Oracle with hundreds of columns. There are several products. Not all the columns apply for every product. Those columns that does not apply to a particular row/product have value as NULL in the table. I need to create a mapping between the product and column names. I am using Jdbc template and spring boot. I am building a microservice. If the user gives a specific product as a query parameter, the columns that pertains to the specific product only should be returned.
Any ideas on how I should go about doing this?
Thanks for your time.