Non-Extracted Tables and Documentation Flashcards
True or False: Views are results, not stored queries?
False, views are stored query, not results.
View:
A view is a stored query that can be investigated in the queries section of its clarity compass entry.
In Clarity, views meet particular reporting needs, pulling in data from several different tables in clarity. As a result, views can greatly decrease the amount of work a clarity report writer needs to do during the query creation process.
True or False: Views in clarity typically being with V_?
True, however this naming convention is not strictly enforced.
True or False: when using a view in clarity, any logic it contains will execute alongside your code?
True, since views in Clarity can be complex, using a view in clarity report can hide this complexity. When using a view in a clarity query, any logic it contains will execute alongside your code, which can affect performance. If query performance is an issue, consider querying tables directly or coping a portion of the view script for use within your own reports.
When using a view in clarity, the logic behind it can be complex, and can affect performance, what can you do to help with performance?
When using a view in a clarity query, any logic it contains will execute alongside your code, which can affect performance. if query performance is an issue, consider querying tables directly or copying a portion of the view script for use within your own reports.
(Video) How are views like hologram and derived like teleportation?
A view is a stored query, you do not save the results and there is no data going into the table. A view is like a hologram (help me OB-one kenobi, you are my only hope). This is a projection of a table, it is not stored. You can interact with it but it does not take up space. In contrast a derived table are materialized views, the results are saved at ETL. They do take up space in the data base. NOw derived tables are like teleportation because they are moving data. (bean me up scotty) we are actually transfering data and it physically takes up space in the destination.
Derived Tables:
Derived tables or materialized views, in clarity are populated from queries that run against data already contained in the database and can take the place of several tables in one report.
True or False: Clarity has more fact and derived tables than caboodle?
False, while caboodle consists primarily of fact and dimension tables, clarity has relatively few derived tables and primarily follows a normalized data model.
True or False: the script for a derived table is not a stored procedure?
False, the script for a derived table is actually a stored procedure, which is called during the clarity ETL process to populate the data in the table. This script can be found in the clarity scripts form or in the queries section of the summary.
What is the quickest way to scope out the underlying data for a view or derived table.
The quickest way is to check the dependent database objects section of the summary tab. This provides a list of the clarity tables and columns, and even views and derived tables, that form the underlying structure of a given database object.
True or False: During the clarity ETL process, the clarity console verifies that all dependent database objects have finished loading?
True, The clarity console verifies that all dependent database objects have finished loading data before running any scripts to populate derived tables.
Where can you see what database objects are dependent on views?
You can also research in the dependencies section which database objects are dependent on a view or derived table.
True or False: Views and derived tables do not have a queries section?
False, they do. The queries section will display the SQL queries responsible for populating the view or derived table. If you are researching a view or derived table the queries section is the location for troubleshooting.
True or False: all derived tables are stored procedures?
False, sorta, all derived tables are based on stored procedures. The stored procedure runs during the ETL to populate it. So derived tables are based on the stored procedures.
True or False: Views and derived tables are not constrained by the rules of the Clarity Data Model.
True, views and derived tables take advantage of the fact that the data is in clarity, stored in tables and columns
True or False: Views and derived tables are considered SQL-based data marts?
True, the views and derived tables use information already stored in the clarity database.
What is a data mart?
A data mart is a subset of data designed to meet the needs of a specific reporting area. For example, the F_ED_Encounters table meets many of the needs of ASAP report writers and drives many ASAP metrics and dashboards.
Why can the primary key structure of a view or derived table take on any form?
Views and derived tables draw information from multiple places in clarity, allowing them to construct what are essentially mini reports in the database that accomplish any desired logic and can store or retrieve the data at any desired granularity. This results in the primary key structure of these databases taking virtually any form?
What do views in clarity begin with?
Views in clarity typically begin with V_, however this naming convention is not strictly enforced.
If you see a table with a F_” what type of table is it?
It is a fact table
If you see a table with D_ what type of table is it?
It is a dimension table