Webster's Revised Unabridged Dictionary · 1913

Whereby

Whereby , adverb

1.
By which; -- used relatively.
You take my life when you take the means whereby I life. — Shakespeare
2.
By what; how; -- used interrogatively.
Whereby shall I know this? — Luke i. 18