Well, I tried distinct before, and distinct only works when all fields match.
but then all fields match except the term.
For example.
ID, SID, Name, Program_Name, Term
01, 123, Ray , CEA, , 2004
02, 123, Ray , CEA, , 2005
Now when I run distinct, it will show both of them because term.value is different!
so is there a way to run a query that will not list both of the records if the program_name are the same.?
Let me purify what I want
Problem 1:
ID, SID, Name, Program_Name, Term
01, 123, Ray , CEA, , 2004
02, 123, Ray , CEA, , 2005
Result wanted when run query:
ID, SID, Name, Program_Name, Term
02, 123, Ray , CEA, , 2005
*it would show the most recent term record and not both of them, because program name match!
Problem 2:
ID, SID, Name, Program_Name, Term
01, 123, Ray , CEA, , 2004
02, 123, Ray , IIS, , 2005
Result wanted when run a query:
ID, SID, Name, Program_Name, Term
01, 123, Ray , CEA, , 2004
02, 123, Ray , IIS, , 2005
*It would show both records because program name dont match.
You are my life saver pat
thanks