Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transposing field data 1

Status
Not open for further replies.

TrekBiker

Technical User
Nov 26, 2010
330
GB
I have an input table with fields in this simplified form.

Company, Category, Score, Comment

The data looks like this

Company A, Category A, Score A, Comment A
Company A, Category A, Score B, Comment B
Company A, Category A, Score C, Comment C
Company A, Category A, Score D, Comment D

then repeated for 40 companies and 10 categories.

For reporting purposes I'd like the data in the form

Company A, Category A, Score A, Score B, Score C, Comment A, Comment B, Comment C, Comment D

Is there a way of doing this without using a huge set of queries that are then joined?
 
Duane

Thanks, I'll have a look at this. Some combinations of Company and Category can have different numbers of scores, from 3 to 6.

Could your suggestion be applied for the entire table, which has 40 companies, 10 categories and the variable number of scores?

Much appreciate your help, as ever.
 
Thanks very much Duane.

I've tried the Northwind example and it looks to do the job, goodness knows how.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top