mohammad-bahrami
سه شنبه 29 مرداد 1392, 12:23 عصر
سلام و خسته نباشی
من یه کوئری توی اسکیول نوشته ام می خوام توی اکسس اجرا کنم ولی تو اکسس روی کلمه کلیدی when خطا میده
select distinct kala.code,kala.name,
sum(case when (dbo.tblInvVoucher.VType = 'ran')
then dbo.tblInvArticle.Amount
end) as رسید,
sum(case when (dbo.tblInvVoucher.VType = 'han')
then dbo.tblInvArticle.Amount
end) as حواله
,sum(case when (dbo.tblInvVoucher.VType = 'mda')
then dbo.tblInvArticle.Amount
end) as [موجودی اولیه]
from dbo.tblInvArticle,dbo.tblInvVoucher,kala
where tblInvArticle.VId=tblInvVoucher.VId and kala.code=tblInvArticle.GoodId and FYear='1392'
group by code,name
من یه کوئری توی اسکیول نوشته ام می خوام توی اکسس اجرا کنم ولی تو اکسس روی کلمه کلیدی when خطا میده
select distinct kala.code,kala.name,
sum(case when (dbo.tblInvVoucher.VType = 'ran')
then dbo.tblInvArticle.Amount
end) as رسید,
sum(case when (dbo.tblInvVoucher.VType = 'han')
then dbo.tblInvArticle.Amount
end) as حواله
,sum(case when (dbo.tblInvVoucher.VType = 'mda')
then dbo.tblInvArticle.Amount
end) as [موجودی اولیه]
from dbo.tblInvArticle,dbo.tblInvVoucher,kala
where tblInvArticle.VId=tblInvVoucher.VId and kala.code=tblInvArticle.GoodId and FYear='1392'
group by code,name