• Post category:StudyBullet-15
  • Reading time:6 mins read


Every sql topic even the most complex topics like triggers stored proc were explained easily for better understanding.

What you will learn

Learns how to install mysql workbench

Learns how to work with mysql commands

Learns how data is stored and modified in SQL

Will provide complete knowledge on all database objects of sql

Description

Why SQL

Store large number of records

Share huge data set among many people

Add and edit data easily

Quick and easy to find information

RDBMS TERMINOLOGY

ColumnΒ  Β as Attribute

Row as Entity Instance

Table as Entity

AlternateKey as UniqueKey

RELATIONSHIPS Cardinality

90% of the tables in database will be linked with another tables.

10%of the tables will be independent.

There are three types of relationships between tables

one to one

one to many

many to many

Tables can have a single / multiple relationships or may not have relationships.

Structured data – 2 dimensional data Rows,Columns

PrimaryKey in one table will be given as ForiegnKey in another table to build relationship.

DATA MODELING

RDBMS

PrimaryKey & ForiegnKey with relationship between them.

1 to 1 – any PrimaryKey can become ForiegnKey

1 to many employees in a department

PK of parent table will be FK in child table

Department table Deptid(PK),DeptName,

Employees TableΒ  Empid,EmpName,DeptId(FK)

many to many(students and teachers,patients & doctors,Hospital & Doctors)(TeacherId,TeacherName)(StudentId,StudentName,TeacherId)

New table will be created and extra column will be added(Bridge Table)

Patient Table(PatientNo(PK),PatientName,Adress),

Doctors Table(DoctorNo(PK),Name,Qualification,Salary, DateOfJoining, DateOfResigning)

Patient Doctor Table()

SDLC-Software Development Life Cycle

Requirement

Analysis & Design

Development


Get Instant Notification of New Courses on our Telegram channel.


Testing

Release

Domain expert(SRS documentation)

Architect

SQL developers

Testers

Deployers(TL/Manager)

ERD(Entity Relationship Diagram)

Peter Chan-Used to design Database

Referential Integrity

SQL server performs existence check when we create relationship.

SELF REFERENTIAL TABLES

A table which has both PrimaryKey and ForiegnKey in it & ForiegnKey refering the primary key in the same table.

You are going to learn

commands (DDL,DML,DQL,DCL,TCL)

datatypes

constraints

CONSTRAINS

Null

Default

PrimaryKey

UniqueKey

ForiegnKey

Check

Auto Increment

views

operators

query writing

joins

sub query

derived table

Views

Indexes

Stored Procedures

Triggers

Functions

Cursors

English
language

Content

Introduction

Introduction and Installation of MYSQL
Introduction to mysql part – 1
Introduction to mysql part -2

Commands

Commands
Commands Part 2
Commands Part 3

Constraints

Constraints
Constraints Part 2

Query Writing

Query

Sample tables

Banking tables Creation

Joins in SQL

Joins
Self Join

Sub Query

Sub Query

Derived Table

Derived table

Views

Views

Indexes

Indexing

Sored Procedures

Stored Prcedure
Stored Procedure 2
Stored Procedure 3 & Intro to Error Handling

Error Handling

Error Handling/Exception Handling

Triggers

Triggers Intro
Triggers Part 2
Triggers Part 3

Functions

Functions In SQL
Functions Part 2
Functions Part 3

Transaction Control Language & Data Control Language

TCL & DCL
TCL & DCL Part 2

Interview Questions

Cursors & Wild Card
Interview