Hi all,
So I'm familiar with the technique of using SQL to return the text values in an external table which are linked to my main table using Lookup fields as follows:
But my main table in reality has a few different Lookup values which all take their value from the second table. They all select values from the same secondary table, as I thought this would save space. But in one record the three different columns can have different values.
So my question is this: when using an SQL query to return data, how do I specify to return the text value from SecondTable once for each different value in these three columns?
Looking forward to any help available - thanks...
So I'm familiar with the technique of using SQL to return the text values in an external table which are linked to my main table using Lookup fields as follows:
Code:
SELECT
MainTable.RecordId, SecondTable.RecordName
FROM
MainTable INNER JOIN SecondTable
ON
MainTable.SecondTableId = SecondTable.SecondTableId
But my main table in reality has a few different Lookup values which all take their value from the second table. They all select values from the same secondary table, as I thought this would save space. But in one record the three different columns can have different values.
So my question is this: when using an SQL query to return data, how do I specify to return the text value from SecondTable once for each different value in these three columns?
Looking forward to any help available - thanks...