I have a table "tbl_attend", which looks like this.
ListNum ID_num EventID Attend
1 23 1 Y
2 23 2 Y
3 23 3 Y
4 56 2 Y
5 56 3 Y
6 29 1 Y
7 56 1 Y
I would like to query unique ID_num where eventid = 1 and 2 and 3 and Attend ='Y'.
e.g:
ID_Num
23
56
My ultimate goal is to find random five Id_nums who have attended 1,2 and 3 events.
Please, please, please, guide me.
thanks in advance.
ListNum ID_num EventID Attend
1 23 1 Y
2 23 2 Y
3 23 3 Y
4 56 2 Y
5 56 3 Y
6 29 1 Y
7 56 1 Y
I would like to query unique ID_num where eventid = 1 and 2 and 3 and Attend ='Y'.
e.g:
ID_Num
23
56
My ultimate goal is to find random five Id_nums who have attended 1,2 and 3 events.
Please, please, please, guide me.
thanks in advance.