I have a table that contains records which may have
different attributes but I would like to list only one type part with the first list of attributes that I find for that part;
For example, my table may consist of the following fields:
Part# Color Price Shape
1111 Blue $20 Circle
2222 Red $15 Square
1111 Red $20 Circle
3333 Orange $10 Box
1111 Green $13 Ball
How do I set up my query so that I only get the
following results:
1111 Blue $20 Circle
2222 Red $15 Square
3333 Orange $10 Box
I tried the following but I still get all of the parts listed in the table:
thanks
different attributes but I would like to list only one type part with the first list of attributes that I find for that part;
For example, my table may consist of the following fields:
Part# Color Price Shape
1111 Blue $20 Circle
2222 Red $15 Square
1111 Red $20 Circle
3333 Orange $10 Box
1111 Green $13 Ball
How do I set up my query so that I only get the
following results:
1111 Blue $20 Circle
2222 Red $15 Square
3333 Orange $10 Box
I tried the following but I still get all of the parts listed in the table:
Code:
SELECT First(shapes.[part#]) AS [FirstOfpart#], shapes.color, shapes.cost, shapes.Shape
FROM shapes
GROUP BY shapes.color, shapes.cost, shapes.Shape;
thanks