G
Gary
I know the basics of query's.
I have one table and this table has two fields in it.
Field 1: Salesman
Field 2: primary key
(it has more but these are the only two needed for my question.)
I want to query the data, so that results are returned if they match a
salesman's name (so far so simple..) However, I want only the last
entry for that salesman to be shown. For example.
I search for salesman 'tom'
there are four records which have the salesman as tom.
I want only the last entry entered to be returned by the query. How do
i do that?
I have had the idea that I could use the primary key to make sure only
the last record entered is shown, by showing only the record which has
the highest number in its primary key field - but i dont know how i'd
accomplish this.
Thanks,
Gary.
I have one table and this table has two fields in it.
Field 1: Salesman
Field 2: primary key
(it has more but these are the only two needed for my question.)
I want to query the data, so that results are returned if they match a
salesman's name (so far so simple..) However, I want only the last
entry for that salesman to be shown. For example.
I search for salesman 'tom'
there are four records which have the salesman as tom.
I want only the last entry entered to be returned by the query. How do
i do that?
I have had the idea that I could use the primary key to make sure only
the last record entered is shown, by showing only the record which has
the highest number in its primary key field - but i dont know how i'd
accomplish this.
Thanks,
Gary.