Question
Filter Resultset
| query | ||||
|---|---|---|---|---|
| studentid | divisionid | examid | classid | |
| 1 | 517 | 535 | 1841 | 8984 |
| 2 | 518 | 535 | 1841 | 8984 |
| 3 | 519 | 535 | 1841 | 8984 |
| 4 | 517 | 536 | 1841 | 8984 |
| 5 | 518 | 536 | 1841 | 8984 |
| 6 | 519 | 536 | 1841 | 8984 |
| 7 | 518 | 534 | 1842 | 8962 |
| 8 | 518 | 535 | 1842 | 8962 |
| 9 | 518 | 536 | 1842 | 8962 |
Please consider the following resultset. I want a query which can get the divisionid
examid classid and student id in which all the students are present.
ie. I want the resultset as
| query | ||||
|---|---|---|---|---|
| studentid | divisionid | examid | classid | |
| 1 | 517 | 535 | 1841 | 8984 |
| 2 | 518 | 535 | 1841 | 8984 |
| 3 | 519 | 535 | 1841 | 8984 |
| 4 | 517 | 536 | 1841 | 8984 |
| 5 | 518 | 536 | 1841 | 8984 |
| 6 | 519 | 536 | 1841 | 8984 |
Please help me out!!!