私のコード近くに無効な構文「)」...私はそれを
RETURNS TABLE
AS
RETURN
(
with Documents as
(
select TOP 100 PERCENT d.LeEn, d.Wacode, d.Waname, d.Arcode, d.Arname, sum(d.Quantity) as Quantity from Documents as d
where (select max(DocumentDate) from Documents as d where d.DocumentCode = 'INW') <= d.DocumentDate
group by d.LeEn, d.WarehouseCode, d.Waname, d.Arcode, d.Arname
order by d.LeEn, d.WarehouseCode, d.Arcode
)
)
を得ることはありませんし、私は「)」に近いこの
不適切な構文を取得しています。
任意のアイデア?
ご使用のデータベースで質問にタグを付けてください。 –