I have a table like 

```
DEPT   Years   Subject
ECE      1       Maths
ECE      1       PDC
EEE      1       Maths
EEE      1       ET
MEC      1       Maths
MEC      1       ET

```

I want the query to find all DEPT (departments) in which subjects are repeated like Maths in ECE, EEE & MEC and ET repeated in EEE & MEC i.e., only repeated ones

Please advice,