I've a table containing staff names, another table containing the occurrences of the staff names with a date.
For example,
tblStaff -> StaffKey, StaffName,
tblSOccurence -> StaffKey, ActivityDate
tblStaff
StaffKey StaffName
73938 Ah Ong
93948 Owe Tam
94331 Weng Housin
tblSOccurrence ActivityDate
73938 12-Oct-2016
73938 22-Nov-2016
73938 3-Jan-2016
93948 15-May-2016
93948 22-July-2016
94331 6-Jan-2016
Sorted by least occurrence first in a textbox as shown below
Weng Housin
Owe Tam
Ah Ong
Any idea on this
For example,
tblStaff -> StaffKey, StaffName,
tblSOccurence -> StaffKey, ActivityDate
tblStaff
StaffKey StaffName
73938 Ah Ong
93948 Owe Tam
94331 Weng Housin
tblSOccurrence ActivityDate
73938 12-Oct-2016
73938 22-Nov-2016
73938 3-Jan-2016
93948 15-May-2016
93948 22-July-2016
94331 6-Jan-2016
Sorted by least occurrence first in a textbox as shown below
Weng Housin
Owe Tam
Ah Ong
Any idea on this