Whereby is defined as in agreement with which, by which or through which.(conjunction)
An example of whereby used as a conjunction is in the sentence, "He was found guilty, whereby he was sentence to five years in prison" which means through finding him guilty, he was sentenced to the prison term.
See whereby in Webster's New World College Dictionary
See whereby in American Heritage Dictionary 4
Learn more about whereby