how can i findout how to do a histogram of 2 tables 1 with 3 intervals and the other with 4