=== SQL properties === In LISA it's possible to have small snippets of SQL to run either on New, Update or Load. It is adviced to have all logic during the Update sequence, to avoid decreasing performance. ==== LISA SQL Syntax ==== The SQL properties in LISA takes normal MSSQL syntax. But all queries are subqueries. Meaning that you are already within an active select statement on the record you are working on. SELECT -- What you write here is what is run witin the outer select. FROM [] WHERE [ ===== Examples ===== To multiple two fields on the same record, you can simply write [].[]*[].[] If you need to get something from a related table, you will have to format your query as you would a subquery, so similar to this: (SELECT a.[] FROM [] a WHERE a.[id] = [].[]) The code that is actually run then is: SELECT (SELECT a.[] FROM [] a WHERE a.[id] = [].[]) FROM [] WHERE [].[id] =