Data Questions
Data Questions
Uses of a View :
A good database should contain views due to the given reasons:
1. Restricting data access –
Views provide an additional level of table security by restricting
access to a predetermined set of rows and columns of a table.
2. Hiding data complexity –
A view can hide the complexity that exists in a multiple table join.
3. Simplify commands for the user –
Views allows the user to select information from multiple tables
without requiring the users to actually know how to perform a join.
4. Store complex queries –
Views can be used to store complex queries.
5. Rename Columns –
Views can also be used to rename the columns without affecting
the base tables provided the number of columns in view must
match the number of columns specified in select statement. Thus,
renaming helps to hide the names of the columns of the base
tables.
6. Multiple view facility –
Different views can be created on the same table for different
users.
PRIMARY KEY - A combination of a NOT NULL and UNIQUE. Uniquely identifies each
row in a table
FOREIGN KEY - Prevents actions that would destroy links between tables
CREATE INDEX - Used to create and retrieve data from the database very quickly
you can have many UNIQUE constraints per table, but only one PRIMARY
KEY constraint per table.
The FOREIGN KEY constraint is used to prevent actions that would destroy links
between tables.
A FOREIGN KEY is a field (or collection of fields) in one table, that refers to
the PRIMARY KEY in another table.
The table with the foreign key is called the child table, and the table with the primary key
is called the referenced or parent table.
It is a database
It is a database programming
Structured Query language using
1. Definition Language. SQL.
Variables,
constraints, and
data types features
Variables are not are available in
2. Variables available in SQL. PL/SQL.
PL/SQL block
performs Group of
Operation as a
single block
Query performs the resulting in
single operation in reduced network
5. Operations SQL. traffic.
Declarative/ PL/SQL is a
Procedural SQL is a declarative procedural
6. Language language. language.
Sr. Basis of
No. Comparison SQL PL/SQL
SQL can be
embedded in PL/SQL can’t be
7. Embed PL/SQL. embedded in SQL.
The term business intelligence often also refers to a range of tools that
provide quick, easy-to-digest access to insights about an organization’s
current state, based on available data.
What are the steps in BI?
1) Data warehouse design => data architect
2) Data integration => data engineer
3) Data analyst => data analyst
4) Data reporting => data visualization developer
What are the tools we use in BI (for ETL, Analysis, and
Visualization)?
ETL: talent / oracle/ data bricks/ data stage
Analysis: sql server /sass data mining
Visualization: power bi /excel / Tableau
➢ Data Warehouse
What is the data warehouse?
What are the characteristics of data warehouse?
A data warehouse is a subject oriented, integrated, nonvolatile, and time variant
collection of data in support of management’s decisions.