WITH MEMBER AS
(
SELECT '홍길동' NAME , '123456789' NO , '20110204' JOIN_DATE FROM DUAL UNION ALL
SELECT '임꺽정' NAME , '234567891' NO , '20120204' JOIN_DATE FROM DUAL
)
SELECT CASE WHEN COUNT(*) >= 1 THEN '데이터가 존재합니다.'
ELSE '해당사항없음'
END NAME
FROM MEMBER
WHERE NAME = '임꺽정'--'홍길동'
AND NO = '234567891'--'123456789'
AND JOIN_DATE BETWEEN '20080101' AND '20111231'
WITH MEMBER AS
(
SELECT '홍길동' NAME , '123456789' NO , '20110204' JOIN_DATE FROM DUAL UNION ALL
SELECT '임꺽정' NAME , '234567891' NO , '20120204' JOIN_DATE FROM DUAL
)
SELECT CASE WHEN COUNT(*) >= 1 THEN '데이터가 존재합니다.'
ELSE '해당사항없음'
END NAME
FROM MEMBER A
WHERE NAME = '홍길동'
AND NO = '123456789'
AND JOIN_DATE BETWEEN '20080101' AND '20111231'
이게 맞는지는 모르겠지만... 조인문의 하드코딩은 바인딩 변수로 바꾸시면 되실듯 싶네요...