I'm trying to figure out the proper query string that would return only the first three records of each group in MySql table.
for example if my table looked like this
Field1....Field 2....Field 3
x...........xdata.....xdata
x...........xdata.....xdata
x...........xdata.....xdata
x...........xdata.....xdata
x...........xdata.....xdata
y...........ydata.....ydata
y...........ydata.....ydata
y...........ydata.....ydata
y...........ydata.....ydata
z...........zdata.....zdata
z...........zdata.....zdata
z...........zdata.....zdata
z...........zdata.....zdata
z...........zdata.....zdata
How would I return the first 3 rows of each value in Field 1 assuming i did not know the values in Field 1
Can anyone help with this?
TIA,
Kyler