--- title: "Sys.Dependency" slug: "sysdependency" tags: ["luminesce ", "provider"] updated: 2024-08-21T07:23:30Z published: 2024-08-21T07:23:30Z canonical: "support.lusid.com/sysdependency" --- > ## 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. # Sys.Dependency | **Type** | **Read/write** | **Author** | **Availability** | | --- | --- | --- | --- | | [Data provider](/v1/docs/what-are-a-data-provider-and-a-direct-provider) | Read | Finbourne | Provided with LUSID | The `Sys.Dependency` provider enables you to write a [Luminesce SQL query](/v1/docs/understanding-the-luminesce-sql-query-syntax) that lists provider and custom view [dependencies](/v1/docs/how-do-i-see-dependencies-for-luminesce-providers-and-custom-views) in Luminesce. > **Note:** The LUSID user running the query must have sufficient [access control permissions](https://support.lusid.com/knowledgebase/article/KA-01708/) to both use the provider *and* read dependency data. This should automatically be the case if you are the domain owner. **See also:** [Sys.Admin.SetupView](/v1/docs/creating-custom-views-sysadminsetupview), [Sys.Registration](/v1/docs/sysregistration) ## Basic usage ```sql select * from Sys.Dependency where ; ``` ## Query parameters `Sys.Dependency` 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 = 'Sys.Dependency' and FieldType = 'Parameter'; ``` ## Data fields By default, `Sys.Dependency` 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 = 'Sys.Dependency' and FieldType = 'Column'; ``` > **Note:** Fields marked 'main' are returned by queries that include a caret character, for example `select ^ from Sys.Dependency`. ## Examples > **Note:** For more example Luminesce SQL queries, visit our [Github repo](https://github.com/finbourne/luminesce-examples/tree/master/examples). ### Example 1: Retrieve first 10 dependencies across all views and providers In this example, `ShowAll = True` is specified to include views and dependencies the user is not entitled to run in the results. ```sql select * from Sys.Dependency limit 10 ``` ### Example 2: Retrieve dependencies for a particular custom view ```sql select * from Sys.Dependency where Name = 'Views.MaturityDaysToExpiry' ``` ### Example 3: Retrieve providers and views with a particular dependency ```sql select Name from Sys.Dependency where Dependency = 'Lusid.Instrument' ```