[sql] Efficient SQL test query or validation query that will work across all (or most) databases