I have a table:
Part    X   Y   
ABC     1   10  
ABC     2   20  
ABC     3   30  
ABC     4   40  
ABC     5   x   
ABC     6   x   
XYZ     1   50  
XYZ     2   60  
XYZ     3   70  
XYZ     4   80  
XYZ     5   x   
XYZ     6   x   
ETC     1   90  
ETC     2   100 
ETC     3   110 
Id like to select this data in the following way:
Part    1   2   3   4
ABC     10  20  30  40
XYZ     50  60  70  80
ETC     90  110 120 130
Is this possible?
Notes:
- Header for results = 1,2,3,4 = Field x from the table
- FieldX contains values 1 - 18, I'm only interested in 1-4
- I'd later like to also Join this to a product table where I'll be able to specify the results based on the product.Supplier field.
I think Subqueries may be the way to go but not experienced in this area.
Thanks for any help offered
 
    