daneshvar1961
جمعه 26 آذر 1389, 19:48 عصر
از sleorderitm bو sleprefactitm a
فیلدهای pricetype
select case when b.pricetype=0 then w
when b.pricetype=1 then x
when b.pricetype=2 then z
when b.pricetype=3 then y
when b.pricetype is null then (select case when a.pricetype=1 then x
when a.pricetype=3 then y from sleprefactitm a)
from sleordeitm b
where b.ctrlvalil=a.basevalref
دوستان کسی میتونه در این خصوص کمکم کنه ؟ اشکال در کجاست میخام نوع فروش رو مشخص کنم
فیلدهای pricetype
select case when b.pricetype=0 then w
when b.pricetype=1 then x
when b.pricetype=2 then z
when b.pricetype=3 then y
when b.pricetype is null then (select case when a.pricetype=1 then x
when a.pricetype=3 then y from sleprefactitm a)
from sleordeitm b
where b.ctrlvalil=a.basevalref
دوستان کسی میتونه در این خصوص کمکم کنه ؟ اشکال در کجاست میخام نوع فروش رو مشخص کنم