--- title: "Lusid.AccountingDiary" slug: "lusidaccountingdiary" tags: ["luminesce ", "provider"] updated: 2024-08-21T07:45:27Z published: 2024-08-21T07:45:27Z canonical: "support.lusid.com/lusidaccountingdiary" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.lusid.com/llms.txt > Use this file to discover all available pages before exploring further. # Lusid.AccountingDiary | **Type** | **Read/write** | **Author** | **Availability** | | --- | --- | --- | --- | | [Data provider](/v1/docs/what-are-a-data-provider-and-a-direct-provider) | Read | FINBOURNE | Provided with LUSID | Providing you have sufficient [access control permissions](/v1/docs/creating-policies-to-control-access-to-providers-for-different-luminesce-end-users), the `Lusid.AccountingDiary` provider enables you to write a [Luminesce SQL query](/v1/docs/understanding-the-luminesce-sql-query-syntax) that retrieves [accounting diary entries](/v1/docs/what-is-an-accounting-diary-entry) of any type stored as part of an ABOR in LUSID. > **Note**: By default, `Lusid.AccountingDiary` cannot retrieve properties for accounting diary entries. To do this, you must first configure `Lusid.AccountingDiary` to 'inline' properties. [See how to do this](/v1/docs/how-do-i-configure-luminesce-entity-providers-to-readwrite-properties). **See also**: [Lusid.AccountingDiary.Writer](/v1/docs/lusidaccountingdiarywriter) ## Basic usage ```sql select * from Lusid.AccountingDiary where ``` ## Query parameters `Lusid.AccountingDiary` has parameters that enable you to filter or refine a query. To list available parameters, their data types, default values, and an explanation for each, run the following query using a [suitable tool](/v1/docs/what-tools-are-available-to-write-luminesce-queries): ```sql select FieldName, DataType, ParamDefaultValue, Description from Sys.Field where TableName = 'Lusid.AccountingDiary' and FieldType = 'Parameter'; ``` ## Data fields By default, `Lusid.AccountingDiary` returns a table of data populated with particular fields (columns). You can return a subset of these fields. To list fields available to return, their data types, whether fields are considered 'main', and an explanation for each, run the following query using a [suitable tool](/v1/docs/what-tools-are-available-to-write-luminesce-queries): ```sql select FieldName, DataType, IsMain, IsPrimaryKey, SampleValues, Description from Sys.Field where TableName = 'Lusid.AccountingDiary' and FieldType = 'Column'; ``` > **Note:** Fields marked 'main' are returned by queries that select a caret character, for example `select ^ from Lusid.AccountingDiary`. ## Examples > **Note:** For more example Luminesce SQL queries, visit our [Github repo](https://github.com/finbourne/luminesce-examples/tree/master/examples/lusid/abor). ### Example 1: Retrieve accounting diary entries from every ABOR ```sql select * from Lusid.AccountingDiary; ``` ### Example 2: Retrieve every accounting diary entry from a particular ABOR ```sql select * from Lusid.AccountingDiary where AborScope = 'Abor' and AborCode = 'Standard'; ``` ### Example 3: Retrieve accounting diary entries with query dates later than a particular date ```sql select * from Lusid.AccountingDiary where QueryAsAt > #2023-01-01#; ```