SQL select generalized.