Hi,
Unsure how to explain what I am trying to achieve, so please bare with me.
I have a table containing field information that are against certain internal campaigns. We use this to display the fields on our internal crm.
What I am now trying to do is use this information within this table, to obtain the data from the table that it is referencing.
This is how the information is stored with out Fields table
Campaign_id Contact_ID Table Field_Name
1 C1 Campaign Field1
1 C2 Campaign Field2
1 C3 Campaign Field3
2 C1 Campaign Field1
2 C2 Campaign Field2
3 C1 Campaign Field1
Then the campaign table will have the Field1-3 columns, along with a Campaign_ID and Contact_ID column, storing the data accordingly.
What I am looking to do is give something the Campaign_ID and Contact_ID and then for it to know what data I need displaying back from the fields. So for example if I gave it Campaign_ID = 1 and Contact_ID = C1 then I would get
Campaign_ID Contact_ID Field1 Field2 Field3
1 C1 Value1 Value2 Value3
Any help or assistance would be amazing, or be able point me in the correct direction to get this to work
Many thanks for any help in advance
Unsure how to explain what I am trying to achieve, so please bare with me.
I have a table containing field information that are against certain internal campaigns. We use this to display the fields on our internal crm.
What I am now trying to do is use this information within this table, to obtain the data from the table that it is referencing.
This is how the information is stored with out Fields table
Campaign_id Contact_ID Table Field_Name
1 C1 Campaign Field1
1 C2 Campaign Field2
1 C3 Campaign Field3
2 C1 Campaign Field1
2 C2 Campaign Field2
3 C1 Campaign Field1
Then the campaign table will have the Field1-3 columns, along with a Campaign_ID and Contact_ID column, storing the data accordingly.
What I am looking to do is give something the Campaign_ID and Contact_ID and then for it to know what data I need displaying back from the fields. So for example if I gave it Campaign_ID = 1 and Contact_ID = C1 then I would get
Campaign_ID Contact_ID Field1 Field2 Field3
1 C1 Value1 Value2 Value3
Any help or assistance would be amazing, or be able point me in the correct direction to get this to work
Many thanks for any help in advance