Exploring Database Objects in Clarity Flashcards
How do views and derived tables alleviate creating a tedious query?
By combining data from multiple tables in one place.
Aug. 2021, 5.4
What is a tool that visually shows relationships between database objects relevant to a particular reporting area?
ER Diagrams (Entity Relationship Diagrams)
Aug. 2021, 5.5
What are two things that an ER diagram contains?
- Tables and their relationships
- Cardinality of those relationships
(Aug. 2021, 5.5)
Where do you search for Clarity ER diagrams?
In Galaxy: • Search " ER Diagram htm" • Download ZIP file • Extract • Open "index.htm"
(Aug. 2021, 5.5)
Do Clarity ER Diagrams document all possible joins between Clarity tables?
No, only some of the joins that are possible between Clarity tables.
(Aug. 2021, 5.6)
List three types of database objects?
- View
- Derived Table (Materialized View)
- Extracted Table
(Aug. 2021, 5.7)
How are Views identified in an ER Diagram?
By a brownish/orangish color.
Aug. 2021, 5.7
How are database object types identified in the Clarity Compass?
By chips in the Overview section of the Summary tab.
Aug. 2021, 5.7
What is a View?
A stored query.
(Aug. 2021, 5.12)
- Queries that are stored in the database
- Accessed as if it were a table
- Do not actually hold data. This means that using a view will not necessarily increase the efficiency of a query. However, views can reduce the amount of work that business intelligence developers must do by reducing the complexity of a query.
(RPT101i SQL I)
What type of database object pulls in data from several different tables in Clarity?
A View.
Aug. 2021, 5.12
What are Derived tables also known as?
Materialized Views
Aug. 2021, 5.12
How are Derived tables populated?
Populated from queries that run against data already contained in the database and can take the place of several tables in one report.
(Aug. 2021, 5.12)
- Materialized views are tables populated from queries that run against other tables.
- Materialized views are often populated by stored procedures.
- Using materialized views can reduce the amount of work that business intelligence developers must do: one materialized view might take the place of several tables.
- Materialized views can increase query efficiency; they are like pre-compiled and saved query results.
(RPT101i SQL I)
In Clarity, what data model does a derived table follow?
The dimensional data model.
• Fact tables begin with F_
• Dimension tables begin with D_
Fun Fact: Clarity has relatively few derived tables and primarily follows a normalized data model.
(Aug. 2021, 5.12)
What database objects typically begin with V_ ?
Views. However, this naming convention is not strictly enforced.
(Aug. 2021, 5.12)
What does a Queries section tell you about a table?
That the table is either a View or a Derived table.
Only Views and Derived tables have a Queries section.
(Aug. 2021, 5.13)