AGD
asked on
How to convert a crosstab type table to flat file format
Imagine a table with 10 records with column headings as follows:-
Expense Type; Cost Centre; Week 1; Week 2; Week 3; Week 4; Week 5
Where Expense Type and Cost Centre is Narrative, and all other columns are values.
Is there a simple way to convert this to a more simplistic table with 50 records with column headings as:-
Expense Type; Cost Centre; Week No; Value
The requirement is effectively the inverse of a crosstab query,
Regards
Expense Type; Cost Centre; Week 1; Week 2; Week 3; Week 4; Week 5
Where Expense Type and Cost Centre is Narrative, and all other columns are values.
Is there a simple way to convert this to a more simplistic table with 50 records with column headings as:-
Expense Type; Cost Centre; Week No; Value
The requirement is effectively the inverse of a crosstab query,
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I just learned about UNION queries last week... Glad to help.
ASKER
I noticed you'd posted a question after I'd written mine re UNION generally !!
Suppose my question accidentally gave an answer to yours !
Regards
Andrew
Suppose my question accidentally gave an answer to yours !
Regards
Andrew
Well, these unions had seemed an odd creature to me, and are infrequently encountered, (or mentioned in manuals, etc.)
So I posted my question to bring answers out of the woodwork. But they still seemed a bit useless. Till I saw your question, and realized that a bunch of passes through the records would really hit the spot.
Answering your question is the first use that I've had from the question that I had posted.
Brian
So I posted my question to bring answers out of the woodwork. But they still seemed a bit useless. Till I saw your question, and realized that a bunch of passes through the records would really hit the spot.
Answering your question is the first use that I've had from the question that I had posted.
Brian
ASKER
Regards