whereby (adv.) Look up whereby at Dictionary.com
c. 1200, from where + by.