SQL
SQL
Non-volatile: The data values in a database cannot be changed without a valid reason.
1. Withdrawal amount
2. Account balance after withdrawal
3. Transaction charge amount
4. Customer ID
5. ATM ID
6. Date of withdrawal
Which of the variables above are fact variables (select all that apply)?
Dimensional Modelling
What are the benefits of having dimension variables apart from facts?
Star Schema
Question :In a star schema, what is the name of the table that
contains the metadata that is needed for analysing
numerical/quantitative data?
3.Server Side
Application-API
Questions:
OLAP vs OLTP
Which of the following statement(s) is/are true? More than one option may
be correct.
OLAP vs OLTP
List the types of databases that are used to perform each of the following
operations:
1. Making a purchase
2. Withdrawing cash from an ATM
3. Finding the average sales of a local store
4. Finding profits by region for a specific product of a food MNC
Ans:
1. Transactional
2. Transactional
3. Transactional
4. OLAP
OLAP vs OLTP
Choose the correct statement from the following options given below:
Extract: Connecting to the particular data source and pulling out the data
Transform: Modifying the extracted data to standardise it
Constraints are the rules that are used in MySQL to restrict the values that can be
stored in the columns of a database. This ensures data integrity, which is nothing
but the accuracy and consistency of the data stored in the database.
Unique: This constraint is used for columns that need unique values. For example,
Null: This constraint is used to determine the columns that can have null values. For
example, an employee may not need to specify their location, which means the
Primary Key: This constraint is used to determine the column that uniquely identifies
a table. For example, 'employee ids' uniquely identify every employee. Two
employees may have the same name or the same salary, but not the same employee id.
Primary Keys
A primary key constraint always enforces both the UNIQUE and NOT NULL
constraints.
Ensure that duplicate records are not entered into the table.
✓ Correct
Feedback:
The UNIQUE constraint is a type of entity constraint that ensures
uniqueness of a column in a table.
Referential constraints: These are used to restrict the values that are taken by a
column in one table based on the values that exist in another table.
Note: A given table has only one primary key but it can have multiple foreign
keys. Before you assign a column as a foreign key, you need to ensure that the
primary key column of the table that it refers to is present and it does not have
null or duplicate values.
An Example of a Referential Constraint
Which of the following scenarios would require using a referential
constraint?
d. When entering the card number for payment, the user must
input a 16-digit number.