I want to write an SQL query (VIEW) to show Item ledger data from multiple companies (say A,B,C) {same database}
. I don't know how to do it (like including $).
No: not using the table where the flowfield is defined.
Yes: you need to write the select on the real table (you can also point to the indexed view but that can be dangerous if you change some SIFT).
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
select [Entry No_], [Item No_], *,
(SELECT sum([Cost Amount (Actual)])
from [Hall Company$Value Entry] as V
where [Item Ledger Entry No_] =ILE.[Entry No_]) as CostAmountActual
from [Hall Company$Item Ledger Entry] as ILE
Ahmed Rashed Amini
Independent Consultant/Developer
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thanks
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Yes: you need to write the select on the real table (you can also point to the indexed view but that can be dangerous if you change some SIFT).
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n