where upper(a,item_name) = 'JJJ'
델피언 님이 쓰신 글 :
: 감사합니다...^^
: where로 바꾸니 되는군요...
:
: 그리고... 검색할때 대소문자를 구분하는군요..ㅠㅠ
: 구분없이 할려면 어떻게 해야하는지요?
:
:
: civilian 님이 쓰신 글 :
: : a.item_name = 'jjj'
: : 는 where 절로.
: :
: : 델피언 님이 쓰신 글 :
: : : Select a.item_code, a.item_name, a.in_num-Nullif(sum(b.out_num),0) as Remain_Num
: : : From Product a left outer join Sale b
: : : on a.seq = b.Product_seq
: : : and a.item_name = 'jjj'
: : : group by a.item_code, a.item_name
: : :
: : : 이렇게 하면 값은 나옵니다...
: : :
: : : 그런데 and a.item_name = 'jjj' <- 이부분이 전혀 영향을 받지 않습니다.
: : :
: : : 무슨 말이냐면 and a.item_name = 'jjj' 빼고 sql을 돌려도 레코드가 100개이고..
: : : and a.item_name = 'jjj' 넣고 돌려도 똑같이 레코드가 100개가 나옵니다.....
: : : 물론 jjj 는 한개밖에 없는데 말입니다..ㅠㅠ
: : :
: : : 미치겠습니다.. ㅠㅠ
|