I have a table in an access database with the following fields:
DATA | SALA | AULA1 | AULA2 | AULA3 | AULA4 | DOCENTE | TURNO
----------------------------------------------------------------------
02/02/2015 | S1 | 1 | 1 | 0 | 0 | JOÃO | MATUTINO
----------------------------------------------------------------------
02/02/2015 | S1 | 0 | 0 | 1 | 1 | JORGE | MATUTINO
----------------------------------------------------------------------
02/02/2015 | S1 | 1 | 1 | 0 | 0 | JOSÉ | MATUTINO
----------------------------------------------------------------------
02/02/2015 | S2 | 1 | 1 | 1 | 0 | MARIA | MATUTINO
I would like to make a query that returns the conflicting classes on the day taking into account the day and the room used.
Ex: 02/02/2015 room 01 is being used by the class in the first two hours of class and in the two endings. Note that on the same day 2 (3rd line) there is a conflict between the 3rd and 1st line (in class 1 and 2). I would like to format a query that informs these two conflicts.
Could anyone help me?
Sorry for the table format ... I could not configure it at all.