0% found this document useful (0 votes)
120 views12 pages

Types of Relations: One To One

One to one, one to many, and many to many are the three main types of relationships in databases. One to one relationships have each value in one table linked to only one value in another table. One to many relationships have each value in one table linked to multiple values in another table. Many to many relationships require a linking table since each value can be linked to multiple values in both tables. Power Query allows users to extract, transform, and load data from various sources into Power Pivot for analysis. Power Pivot provides fast in-memory data modeling and calculation capabilities using the DAX language. Power BI Desktop integrates Power Query, Power Pivot, and additional visualization tools for interactive analysis and sharing of

Uploaded by

Nishanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views12 pages

Types of Relations: One To One

One to one, one to many, and many to many are the three main types of relationships in databases. One to one relationships have each value in one table linked to only one value in another table. One to many relationships have each value in one table linked to multiple values in another table. Many to many relationships require a linking table since each value can be linked to multiple values in both tables. Power Query allows users to extract, transform, and load data from various sources into Power Pivot for analysis. Power Pivot provides fast in-memory data modeling and calculation capabilities using the DAX language. Power BI Desktop integrates Power Query, Power Pivot, and additional visualization tools for interactive analysis and sharing of

Uploaded by

Nishanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Types Of relations:

One to one:

One to many:

Widely used relation one to many


If we merge customer table columns with the order table the there are two problems as follows.

1. Violating normalization form


Data redundancy slows down the process of database.
2. Data redundancy which reduces the performance of the database.
Solutions is linking customers table to the orders table using the foreign key.
Foreign key can be repeated whereas primary key values are distinct.
Example one to many : Customer that is identified with customer ID column can have many
orders.

Many to many:
Many writers can write many books. We can not get the data using foreign key as that will
consider one to many. So we can get the data in this using linking table.
One to one relationship:

related column in both tables has only one instance of each value. This
relation is used in database in least cases.
Normalization:

Normalization is the process of organizing the table in such a way that it reduce data redundancy. It
divides the tables and there is a relation between them. It increases database security as tables are
divided and creates opportunity to hide the information from particular users.

1NF:

EX:

In such cases create separate table as below


2NF:

Composite key occurs when there is more than one primary key. In below instance on key column
teacher depends on course column and does not depends on student ID. In such scenarios non key
column should be isolated and linked with dependent column (course column in example)
3NF:

Suppose in below example if any new student id is added belongs to exam type practical then we
can guess that Max marks for that is 50 which is violating the 3NF. Need to link with separate table.
Salry based on designation

It can also occurs when there is calculation performs in the table. Earnings is based on Tickets and
per ticket value.
Many to one:

one column in one table has only one instance of each unique value,
but the related column in the other table has multiple instances of a
particular value.

[Link]

[Link]
relationships

Power Query:

It allows users to extract data from different sources and enables in manipulating the data
into required format.

 Collect data from files of all basic data types like XLSX, TXT, CSV, JSON,
HTML, both singly and in bulk, from all the files in the specified folder.
From Excel workbooks, you can automatically download data from all
sheets at once.
 Clear the data from the “garbage”: extra columns or rows, repetitions, service
information in the “header,” extra spaces or unprintable characters, etc.
 Putting data in order: correct case, number-as-text, fill in the blanks, add the
correct table header, disassemble the text sticking to the columns and merge
back, divide the data into components, etc.
 Reshape data(transposing, grouping, pivoting, un-pivoting)Transform tables in
every way by bringing them into the desired view (filter, sort, change the order
of columns, transpose, add totals, expand cross-tables into flat ones, and
rollback).

Power Pivot:

Power Pivot is an in-memory data modeling component that provides highly compressed
data storage and extremely fast aggregation and calculation.  Power Pivot is needed mainly
for complex analysis of large amounts of data.
Think of Power Pivot as a calculation layer between your data and outputs. You can tell
Power Pivot how you want your calculations done thru a language called as DAX and Power
Pivot can give the answers. It is an extremely fast & scalable software.

Power Pivot can load data by itself or can load data into Power Query. It is very similar to the
SSAS (SQL Server Analysis Services) tabular model, which is similar to the server version of
Power Pivot.

 First, you load data into Power Pivot — 15 different sources are supported:
common databases (SQL, Oracle, Access …), Excel files, text files, data feeds.
Besides, you can use Power Query as a data source, which makes analysis
almost omnivorous.
 The links are configured between the loaded tables or, as they say, the Data
Model is created. This will allow in the future to build reports on any fields
from the existing tables as if it was a single table.
 In Power Pivot, there is no limit on the number of lines (as in Excel). You can
load tables of any size and work with them calmly.
 Power Pivot is very good at compressing data when loading it into the Model.
A 50 MB source text file can easily turn into 3-5 MB after downloading.

It can analyze 10-15 millions of records very quickly.


Power BI Desktop is a program for analysing and visualizing data, which includes, among
other things, all the functionality of Power Query and Power Pivot + add-ons and improved
visualization mechanisms from Power View and Power Map.

 Power BI works with large data sets. There is no artificial limit of 1mn rows
in Power BI. You can hook up to a business data set and analyze any
volume of data. The limit depends on what your computer (or Power BI
server) can process.
 Share and read reports easily. You can create reports in Power BI and share
them in formats that are universal (i.e., browser pages or apps). This means
your boss need not have Excel or Power BI installed to enjoy the beautiful
reports you create.
 Power BI allows rich, immersive and interactive experiences out-of-box. You
can click on a bar in bar chart & other visuals respond to the event and highlight or
filter relevant data. You can show graphs & visuals that are very tricky (or
impossible) to reproduce in Excel like maps, pictures and custom visuals.

Its main components include:

 Power Pivot
 Power Query
 Power View
 Power Map
 Power Q&A

For more advanced functionalities, Power BI has 2 paid plans:

 Power BI Pro which costs $9.99 per month per user


 Power BI Premium which costs $4,995 per month

You might also like