Here’s the problem, I have two tables The Product table and the Parts table. The number of parts can very from one to ten and even have duplicates. I need to print the Parts out vertically across the page instead of horizontally. The column heading is the Part-Type stored in the Parts table and will remain the same for all configuration of the product. The column heading is printed once at the beginning of each product. The parts may vary inside the product creating Product-1, configuration a, b, c..
Product table - (Product Id, description)
Component Table - (Product Id, Part name, Part type)
Product-1desc
Type1 Type2 Type3 Type4 Type5 Type6
Product-1a Part-1 Part-2 Part-3a Part4 Part-5 Part-6
Product-1b Part-1 Part-2 Part-3b Part4 Part-5 Part-6
Product-1c Part-1 Part-2 Part-3 Part4a Part-5 Part-6
Product-2desc (product)
Type1 Type2 Type3 Type4 Type5 (Column heading)
Product-2a Part-1 Part-2 Part-8 Part-9a Part-10
Product-2b Part-1 Part-2b Part-8c Part-9 Part-10
Product-2c Part-1 Part-2c Part-8 Part-9b Part-10
Product-2d Part-1 Part-2 Part-8a Part-9 Part-10
Product table - (Product Id, description)
Component Table - (Product Id, Part name, Part type)
Product-1desc
Type1 Type2 Type3 Type4 Type5 Type6
Product-1a Part-1 Part-2 Part-3a Part4 Part-5 Part-6
Product-1b Part-1 Part-2 Part-3b Part4 Part-5 Part-6
Product-1c Part-1 Part-2 Part-3 Part4a Part-5 Part-6
Product-2desc (product)
Type1 Type2 Type3 Type4 Type5 (Column heading)
Product-2a Part-1 Part-2 Part-8 Part-9a Part-10
Product-2b Part-1 Part-2b Part-8c Part-9 Part-10
Product-2c Part-1 Part-2c Part-8 Part-9b Part-10
Product-2d Part-1 Part-2 Part-8a Part-9 Part-10
Last edited: