Hi together,
I hope the Title is not to shabby.
i need to store a lot of Values for a tool that generates statistics for outbound Campaings and i am not sure if it is better to store my different Values in a Column or Row based structure.
To give you a better understanding here is an Example:
Here what i call row based: (KPi would be 30 different entrys)
Year,Month,Week,ProjectiD,Partner,KPI,Value
And Column based would be the same but instead of KPI i would have 30 Columns and the value would be stored in that column.
I am not sure what are the advantages or disadvantages of each way. I assume the Row based storing would be slower cause you have a lot more rows in your table and if you want to get a specific KPI u would have to use a where clause and process all the rows. but i am not sure what is best practice
Thanks for your comments and greets Loki
I hope the Title is not to shabby.
i need to store a lot of Values for a tool that generates statistics for outbound Campaings and i am not sure if it is better to store my different Values in a Column or Row based structure.
To give you a better understanding here is an Example:
Here what i call row based: (KPi would be 30 different entrys)
Year,Month,Week,ProjectiD,Partner,KPI,Value
And Column based would be the same but instead of KPI i would have 30 Columns and the value would be stored in that column.
I am not sure what are the advantages or disadvantages of each way. I assume the Row based storing would be slower cause you have a lot more rows in your table and if you want to get a specific KPI u would have to use a where clause and process all the rows. but i am not sure what is best practice
Thanks for your comments and greets Loki