J
Johan Myrberger
I currently have two tables:
* CustomerData, with fields CustID, Country, and some other misc fields
* CountryData, with fields Country, Year and Population
Based on this I'm trying to make a query from Excel that would provide
the following type of output:
CustID Country 2001 2002 2003 2004 (header line)
CustID1 Countr1 pop-01 pop-02 .... (data..)
Instead I am only able to create output like:
CustID Country Year Population
CustID1 Countr1 2001 pop-01
CustID1 Countr1 2002 pop-02
...
CustID2 Countr2 2001 pop-01
CustID2 Countr2 2002 pop-02
So:
- How can I create the wished output?
- Or is this not possible with the current table design, should I
redesign the CountyData table to have a field for each year?
Regards
/Johan Myrberger
* CustomerData, with fields CustID, Country, and some other misc fields
* CountryData, with fields Country, Year and Population
Based on this I'm trying to make a query from Excel that would provide
the following type of output:
CustID Country 2001 2002 2003 2004 (header line)
CustID1 Countr1 pop-01 pop-02 .... (data..)
Instead I am only able to create output like:
CustID Country Year Population
CustID1 Countr1 2001 pop-01
CustID1 Countr1 2002 pop-02
...
CustID2 Countr2 2001 pop-01
CustID2 Countr2 2002 pop-02
So:
- How can I create the wished output?
- Or is this not possible with the current table design, should I
redesign the CountyData table to have a field for each year?
Regards
/Johan Myrberger