BJP won six assembly by-polls, and its ally Rashtriya Lok Dal (RJD) won one seat, while the Samajwadi Party was able to win just two seats out of nine contested.