convert history to array
This commit is contained in:
parent
9e98c6f24b
commit
041b0591ba
@ -86,7 +86,7 @@ BEGIN
|
||||
UPDATE q
|
||||
SET
|
||||
q.hist = (
|
||||
SELECT TOP 1
|
||||
SELECT
|
||||
j.qty,
|
||||
j.price,
|
||||
j.odate,
|
||||
@ -107,7 +107,7 @@ BEGIN
|
||||
AND lp.mold = SUBSTRING(q.part,1,8)
|
||||
AND p.[key] COLLATE SQL_Latin1_General_CP1_CI_AS = q.part
|
||||
ORDER BY j.odate DESC
|
||||
FOR JSON PATH, WITHOUT_ARRAY_WRAPPER
|
||||
FOR JSON PATH -- <<< this returns a JSON array of objects
|
||||
),
|
||||
q.last = (
|
||||
SELECT TOP 1
|
||||
|
Loading…
Reference in New Issue
Block a user