안녕하셔요...
Select A.BomCode, C.BomName, B.Whape, Sum(A.SoyoRang/A.Soyowon) proRang
,SoKum = Case ============
When B.Danga <> 0 Then (A.SoyoRang*B.Danga) 사이의 값을
Else (A.SoyoRang*B.imsiDanga) SUM 하고 싶은데
End 어떻게해야할지
,BSoKum = Case 모르겠네요
When B.Danga <> 0 Then (A.SoyoWon*B.Danga)
Else (A.SoyoWon*B.imsiDanga)
End ===========
from SOYO A, Jaje B, BomH C
Where A.Bomcode =C.BomCode
and A.JjCode=B.JjCode
and A.LevelNo='0'
and A.Gubun='1'
Group by A.BomCode, C.BomName, B.Whape
Order by A.BomCode, C.BomName, B.Whape
그룹 한상태에서의 조건문은 어떻게 SUM 해야 할지.....