Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SELECT query Assistance

$
0
0

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?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>