hi
I'm trying to get distinct values from 2 columns in access. Until now, here's what I've been using
It returns all distinct/unique values of the column month.Code:SELECT DISTINCT month FROM myTable
But there's another column named year & what I want is to get the distinct value of both month & year. Like, consider the following data in the table:
Now, in the above table data, there are 3 instances of 3/2000, 2 instances of 6/2000, 2 instances of 4/2000, 2 instances of 5/2003 & one instance each of 7/2001, 6/2003 & 3/2004.Code:month || year ------------------ 3 || 2000 3 || 2000 3 || 2000 6 || 2000 6 || 2000 4 || 2001 4 || 2001 7 || 2001 5 || 2003 5 || 2003 6 || 2003 3 || 2004
What I want is to get only the unique entries. These are 2 columns of one table & I want one instance of each occurence.
Can anyone help?









Bookmarks