whereby (adv.)
c.1200, from where + by.