Bikes Field Contents BikeID Integer Primary key with no meaning Color The color of the bike Size The size of the bike SerialNo The serial numberThis table has one record for each bike. You can use sql to get the format you want by;
SELECT Color, Size, COUNT() AS Kount ; FROM Bikes ; GROUP BY 1,2 ; ...That will produce your non-normalized view of the data.
SELECT SerialNo ; FROM Bikes ; WHERE Color = TheOneInTheOtherView ; AND Size = TheSizeInTheOtherView ; ...This query will get a list of serail numbers of the bikes that match the color and size for the cell in the grid where the user clicked.