Given the following table
Table Foo
Field Type as String
Field Class As String
Field Value As double
Where each Type could have H classes
The Data could be;
Type,Class,Value
X, B, 102
X, D, 22
X, F, 53
y, A, 643
Z, E, 63
I need a query that takes Type as a parameter and returns
a flat record of all classes for a given type ... ei Type X;
A B C D E F G H
0 102 0 22 0 53 0 0
The SQL builder in Access only does a single select ... I suspect a compound select statement is required but am having difficulty visioning it
If I use the joins from the Access wizard, A, C, E, G and H will stop the select statement because the data is not there.
The data has to be in a query in order to use the spreadsheet export function ... I could create a CSV file from code and import into excel but was expecting there should be some way to do this in SQL???
Table Foo
Field Type as String
Field Class As String
Field Value As double
Where each Type could have H classes
The Data could be;
Type,Class,Value
X, B, 102
X, D, 22
X, F, 53
y, A, 643
Z, E, 63
I need a query that takes Type as a parameter and returns
a flat record of all classes for a given type ... ei Type X;
A B C D E F G H
0 102 0 22 0 53 0 0
The SQL builder in Access only does a single select ... I suspect a compound select statement is required but am having difficulty visioning it
If I use the joins from the Access wizard, A, C, E, G and H will stop the select statement because the data is not there.
The data has to be in a query in order to use the spreadsheet export function ... I could create a CSV file from code and import into excel but was expecting there should be some way to do this in SQL???