FireBird Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
파이어버드 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
IBPhoenix
FireBird Main site
볼랜드포럼 광고 모집

FireBird Q&A
[3194] Re:Re:Re:outer join 질문
civilian [civilian] 2587 읽음    2009-09-04 10:14
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 는 한개밖에 없는데 말입니다..ㅠㅠ
: : :
: : : 미치겠습니다.. ㅠㅠ

+ -

관련 글 리스트
3189 outer join 질문 델피언 2552 2009/09/04
3191     Re:outer join 질문 김상면 2562 2009/09/04
3192         Re:Re:outer join 질문 델피언 2490 2009/09/04
3190     Re:outer join 질문 civilian 2230 2009/09/04
3193         Re:Re:outer join 질문 델피언 2031 2009/09/04
3194             Re:Re:Re:outer join 질문 civilian 2587 2009/09/04
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.