K
Ken
Hi,
I am trying to figure out a process from queries to obtain correct data from
a table.
For example, I have 3 fields
Apple Red Big
Apple Green Small
Now I would like to obtain the 2nd row as a result (I do not want to use
individual criteria as I am working on a large transaction table with
history). So my logic is to create one query where I would sort this table in
ascending order on the second field, which gives,
Apple Green Small
Apple Red Big
Then uses a second query (group by) on the first field, the rest using
(First from group by) to get the answer, but in the end I get the first row
instead. What am I doing wrong here?
I am trying to figure out a process from queries to obtain correct data from
a table.
For example, I have 3 fields
Apple Red Big
Apple Green Small
Now I would like to obtain the 2nd row as a result (I do not want to use
individual criteria as I am working on a large transaction table with
history). So my logic is to create one query where I would sort this table in
ascending order on the second field, which gives,
Apple Green Small
Apple Red Big
Then uses a second query (group by) on the first field, the rest using
(First from group by) to get the answer, but in the end I get the first row
instead. What am I doing wrong here?