Consider two tables:
people
answers
The people table contains name, email etc for a person in each row.
The answers table contains answers for a person for questions. One answer per row. (There are at most five questions/answers.)
What I want to do is write out a tab-delimited file (so someone can play around with the data in Excel) where each line in the file has the person data (not a problem) and all the answers for that person.
The only way I have come up with to do this is while writing a line to the file do a query to get that person’s answers, assemble them into a string and stick them at the end of the line.
Anyone have any better ideas.
8 posts - 4 participants