sougata666
Registered User.
- Local time
- Today, 04:35
- Joined
- May 1, 2016
- Messages
- 36
I have a table (say table1) like this in Access 2013
userid Category Date
------ -------- ----
1 A 1 MAY 13
1 B 2 MAY 14
2 B 1 MAY 12
3 NA 1 MAY 15
1 D 1 MAY 16
2 A 1 MAY 13
4 NA 1 MAY 14
5 C 1 MAY 12
i intend to design a query which will produce
userid Category Date
------ -------- ----
1 D 1 MAY 16
2 A 1 MAY 13
5 C 1 MAY 12
Conditions:
1. Only userids who do NOT have 'NA' in their category field to be selected.
2. Of those selected users, only their latest category to be displayed.
It is easy to get the first condition satisfied. However I am getting repeated userids (i.e. userid 1 is getting displayed multiple times. Same with other users.)
How can I design a single query to achieve the same? Also, I want to design it using ony the query designer without getting into SQL code view in Access if I can help it. I have really limited knowledge on SQL. I request a step by step answer especially if I have no other option but to use SQL. I have seen the top n in a group list answers but they are too SQL dependent and does not really help my case. I want an MS ACCESs 2013 specific answer.
userid Category Date
------ -------- ----
1 A 1 MAY 13
1 B 2 MAY 14
2 B 1 MAY 12
3 NA 1 MAY 15
1 D 1 MAY 16
2 A 1 MAY 13
4 NA 1 MAY 14
5 C 1 MAY 12
i intend to design a query which will produce
userid Category Date
------ -------- ----
1 D 1 MAY 16
2 A 1 MAY 13
5 C 1 MAY 12
Conditions:
1. Only userids who do NOT have 'NA' in their category field to be selected.
2. Of those selected users, only their latest category to be displayed.
It is easy to get the first condition satisfied. However I am getting repeated userids (i.e. userid 1 is getting displayed multiple times. Same with other users.)
How can I design a single query to achieve the same? Also, I want to design it using ony the query designer without getting into SQL code view in Access if I can help it. I have really limited knowledge on SQL. I request a step by step answer especially if I have no other option but to use SQL. I have seen the top n in a group list answers but they are too SQL dependent and does not really help my case. I want an MS ACCESs 2013 specific answer.