'Data Visualization Questions'
'Data Visualization Questions'
SQL constraints are used to specify rules for the data in a table
Types of constraints
NOT NULL - Ensures that a column cannot have a NULL value
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
he HAVING clause was added to SQL because the WHERE keyword cannot be used with
aggregate functions.
Snowflake Schema:
Snowflake Schema is also the type of multidimensional model which is used for data
warehouse. In snowflake schema, The fact tables, dimension tables as well as sub
dimension tables are contained. This schema forms a snowflake with fact tables, dimension
tables as well as sub-dimension tables.
Star Schema Snowflake Schema
In star schema, The fact tables and the While in snowflake schema, The fact tables, dimension
1. dimension tables are contained. tables as well as sub dimension tables are contained.
It takes less time for the execution of While it takes more time than star schema for the
4. queries. execution of queries.
In star schema, Normalization is not While in this, Both normalization and denormalization are
5. used. used.
The query complexity of star schema is While the query complexity of snowflake schema is higher
7. low. than star schema.
9. It has less number of foreign keys. While it has more number of foreign keys.
10. It has high data redundancy. While it has low data redundancy
What is hypothesis
Types of database??
• Hierarchical databases
• Network databases
• Object-oriented databases
• Relational databases
• NoSQL databases
What is ERD?
Entity Relationship Modeling: “To make the conceptual design”
Entity-Relationship Diagram (ERD): identifies information required by the business by displaying
the relevant entities and the relationships between them.
(Entity .. attributes … relationship )
What is denormalize?
Denormalization is used to combine multiple table data into one so that it can be queried quickly .
=>focus on to achieve the faster execution of the queries through introducing redundancy.
=> number of tables to store that data increases
Types of sampling
What is p value
A JOIN clause is used to combine rows from two or more tables, based on a related
column between them.
• (INNER) JOIN: Returns records that have matching values in both tables
• LEFT (OUTER) JOIN: Returns all records from the left table, and the matched records
from the right table
• RIGHT (OUTER) JOIN: Returns all records from the right table, and the matched records
from the left table
• FULL (OUTER) JOIN: Returns all records when there is a match in either left or right table
data warehouse => collection of data from several sources in one place / excel
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.
What is the difference between null & not null
SQL IFNULL(), ISNULL(), COALESCE(), and NVL() Functions
The NOT NULL constraint enforces a column to NOT accept NULL values.
If you define a CHECK constraint on a column it will allow only certain values for this column.
If you define a CHECK constraint on a table it can limit the values in certain columns based on
values in other columns in the row.
The default value will be added to all new records, if no other value is specified.
What is self-join
A self join is a regular join, but the table is joined with itself.
4 types of data
What is sql
What is nvl
What is isnull
The ALTER TABLE statement is also used to add and drop various constraints on an existing table.
What is a class
(Here we can use the “ROLLBACK” command to restore the tuple because it does not auto-commit)
=> truncate is used to delete all the rows of a relation (table) in one go
(Here we can't use the “ROLLBACK” command to restore the tuple because it does not auto-commit)
interstellar, this movie tells us, there is only one way to ensure
Iti majors
Introduce yourself