Derby moved into the top six of the Sky Bet Championship after recording a 2-1 home win over 10-man Middlesbrough on Wednesday night.