結果 : how to check two conditions in sql