I have no problem with the structure of the data table. My challenge is to show this as a pivot view where Company are rows, Type of Contact as columns, and cells are values from the table State of contract
I understand, but trust me, you will have many problems if you stick to your concept… I’ve been doing this for over 30 years.
Have a separate table for contracts, users, and payments. Then, you connect these tables by user ID, contracts ID, and payments ID and filter them out by categories.
The company is a user in your App, the same as clients and admins. The difference will be the role column.
So, if you want to show companies… filter the users table by role companies…and bring related values from contracts
Let me simplify what I need by providing another example.
I have normalized tables Student / Lessons / Marks (StudentID, LessonID, Mark). I just need to display them as is:
Yes… you take the user’s table filter by students (role)
In that table, relate the user ID to the lessons table user’s IDs and do a lookup for dates… simple