Week 03 Part 02
Week 03 Part 02
ANALYTICS
SQL TUTORIAL
Course Instructor: Prof Saji K Mathew
K R SUBISHA
TA
PHD SCHOLAR, INFORMATION
SYSTEMS
IIT MADRAS
PRE REQUISITES
► DBMS
► Intro to SQL
► Basic commands
► Keys
► Normalization
► Case: Shopsense retail
DATA BASE MANAGEMENT SYSTEM
► It is the process of
designing a DB
effectively such that we
can avoid data
redundancy
► Insertion/ deletion/
Updation anomalies
can be avoided
► In some columns, same
values can be there for
multiple records- DR
DATA REDUNDANCY AND ISSUES
► Should be in 2nd NF
► Should not have Transitive Dependency
► TD is when there is an attribute in a table which depends on a non prime attribute and
not on a prime attribute
► All non prime attributes should depend only on prime attributes
BCNF (BOYCE CODD NF)
► Table should be in 3 NF
► For any dependency A B,A should be a
super key (A cannot be non prime
attribute and B a prime attribute)
BCNF CONTD..
PANEL VIEW
CHANGE
NAVIGATOR PANEL
SEE SCHEMAS
(sys- internal db)
EXECUTE
QUERY AREA
Create new
schema
OUTPUT
TABLES
SCHEMA