The datastructure for this set-up is 2 tables. One holds the actual data, one holds the field names. So for example, tableName holds the fields, employeeFirstName, employeeLastName, employeeStore, and tableAnswers would hold, Bob, Godfrey, Vicksburg
tableName
EntryID
employeeFirstName varchar(500),
employeeLastName varchar(500),
employeeStore varchar(500)
tableAnswer
EntryID
Answer nvarchar(2000)
I link on Entry ID to return the data for each entry, but that is only based off one entry, what if I wanted ALL records where
Answer was a specific city, how could I write that query to give me that info?