fiogf49gjkf0d It is not an easy task, but here is how to do it:
- Create a Table with the Desired fields from the Latest History record.
- Using SQL Management Studio, drop the table, and on its place create an SQL View. Here is a Sample Query that you could use to base your View upon:
SELECT CATEGORY, DESCRIPTION, NOTES, TYPE FROM HISTORY H INNER JOIN ( SELECT ACCOUNTID, MAX(CREATEDATE) AS CREATEDATE FROM HISTORY GROUP BY ACCOUNTID ) HD ON H.ACCOUNTID = HD.ACCOUNTID AND H.CREATEDATE = HD.CREATEDATE
By dropping the Table at the SQL Level and then adding a View with the same name and Schema, then you trick SLX into using the View.
As stated, this is only a good option if you don't have Remotes, otherwise you could still do it, but you would have to find the means to distribute the Views, etc, and it turns into a bit more complex process. |