bzzyplayin
Programmer
My dilemma, in which I need urgent help with, is with a Lawson table. We are just starting to build attributes. They allow 9,999 user-defined attributes. So, the data ends up in the following format (with multiple records per ObjectID):
ObectID AttributeName Value
12 SQFT 1200
12 StoreType Mall
12 State MI
15 SQFT 3000
15 StoreType Mall
15 State IN
We are unable to use this format to join to any other tables, since the above example would inflate the other records (by 2) if I join by ObjectID. I need one record per ObjectID.
What we hope to do, is create a table in SQL that puts the information by ObjectID into 1 record, with each AttributeName as a field heading with the corresponding value for that field. Is this possible?
ObjectID SQFT StoreType State
12 1200 Mall MI
15 3000 Mall IN
The fields needs to be dynamic based upon additional attributes that are created.
Note: This new table would be used for reporting using Crystal Reports 8.5.
Any help or advice will be more than appreciated.
ObectID AttributeName Value
12 SQFT 1200
12 StoreType Mall
12 State MI
15 SQFT 3000
15 StoreType Mall
15 State IN
We are unable to use this format to join to any other tables, since the above example would inflate the other records (by 2) if I join by ObjectID. I need one record per ObjectID.
What we hope to do, is create a table in SQL that puts the information by ObjectID into 1 record, with each AttributeName as a field heading with the corresponding value for that field. Is this possible?
ObjectID SQFT StoreType State
12 1200 Mall MI
15 3000 Mall IN
The fields needs to be dynamic based upon additional attributes that are created.
Note: This new table would be used for reporting using Crystal Reports 8.5.
Any help or advice will be more than appreciated.