User bio
404 bio not found
Member since Feb 4, 2016
Posts:
Replies:
The Data keyword means to capture/store the values of City and State in the index but not as a key. if your sql query needs to query for the ZipCode, City, and State with Data=(City,State) the query can be index satisfiable, meaning it will read data from the index and get the City and State from the index vs. having to go to the master map/Table to get the City and State.
You can also reference https://docs.intersystems.com/iris20251/csp/docbook/Doc.View.cls?KEY=GCO.... While this documentation is for IRIS all of the information should be applicable for Cache as well.
Certifications & Credly badges:





Global Masters badges:





Followers:
Following:
Stephen has not followed anybody yet.
the language=tsql feature allows you to write SQL statements that are supported by transact SQL.
https://docs.intersystems.com/iris20252/csp/docbook/Doc.View.cls?KEY=GTS...
On the one hand it means if you are familiar with tsql then you can continue to write using it's supported syntax and
On the other hand if you use language =tsql you may not be able to use the extensions that InterSystems SQL supports such as implicit join syntax.
While you can write a method or trigger using language=tsql I do not believe you can write a class query with language = tsql. In this case you are kind of mixing apples and oranages.
A class Query is a defined/callable query statement that can optionally be defined as a SQLProc. When a Query is defined it can be defined as %Query in which case you write the Execute/Fetch/Close and within there I imagine you could use language = tsql but this is the less common approach and is a special case. If Query is based on %SQLQuery you would simply provide an InterSystems SQL statement and not a tsql statement.
A class method can define language =tsql and this means the sql statements in the method are using the tsql dialect. While a classmethod can also be defined as a SQLProc that can either act as a function returning a value or can use ReturnResultSets to