What is the difference between SQL WHERE and HAVING clauses, and when would you use each in Beaconfiresolution data queries?