You are on page 1of 16

DBMS Lab

K. Subramanian
Course Description
• Database management lab is designed to have
a real feel of database design using structured
query languages with MySQL environment,
which includes use of various data definition,
data manipulation commands, functions,
joins, sub-queries, views , set operations,
procedures, and triggers.
Course Objectives
• To provide Students with solid foundation in Database Management

• systems, Relational database Management systems so that they will be to

• use this knowledge in problem- solving.

• To train Students to effectively comprehend, analyse, design and construct Database

software applications.

• Be familiarized with a query language.

• Have hands on experience on DDL Commands.

• Have a good understanding of DML Commands and DCL commands

• Familiarize advanced SQL queries.


Course Outcome
• Upon completion of this course, students will
be able to:
• Learn the fundamentals of database,
relational database, and transaction
processing.
• Analyze the requirements of a problem and
draw the ER diagram.
• Solve the queries for the Database.
Course ( DBMS Lab )

• Credits : 2

• No of Teaching Hours : 22

• Total Marks : 100


Course ( DBMS Lab )

• Attendance : 5 %

• Class Participation : 10 %

• Quiz : 10 %

• Assignments : 10 %

• Mid – Term : 25 %

• End – Term : 40 %
Unit – 1 : Data Modeling - ERD
• Objective 1: To Understand the basics of Data
Modeling.
• 1 – 1 Relationship
• 1 - Many Relationship
• Many-Many Relationship
• Weak Entity Relationship
• Recursive Relationship
• Specialization and Generalization
• Union Type
Unit – 1 : Data Modeling - ERD

• Students will be given a business case;


students will create an Entity Relationship
Diagram from that business case. The students
will use the following relationship types to
draw the ER diagram.
Unit – 2 : Relational Modeling
Objective 2: To Understand the basics of Relational Mapping.
• Using the Entity Relational Diagram, students convert the
ERD to relational schema diagram using the Relational
mapping rules.

• Using the Relational schema diagram, students will create all


the tables or relations.

• Students will create Primary Key, Foreign Key and all related
columns using RM mapping rules.
Unit – 2 : Relational Modeling
Objective 2: To Understand the basics of Relational Mapping.

• Students will create the tables using the following DDL SQL.
– CREATE
DROP
– ALTER
– RENAME

• Students will then manipulate the data in the tables using the
following DML SQL
– INSERT
– UPDATE
– DELETE
– SELECT
Unit – 3 : SQL Queries
Objective 3: To understand how to retrieve data from an
underlying DBMS.
• WHERE clause
• COMPARISON operators
• LOGICAL operators
• SQL LIKE, IN
• SQL NOT IN
• SQL CREATE DATABASE
• SQL USE DATABASE
• SQL ALTER DATABASE
• SQL DROP DATABASE
Unit – 3 : SQL Queries
Objective 3: To understand how to retrieve data from an underlying DBMS.

• SQL INTEGRITY CONSTRAINTS PRIMARY KEY, FOREIGN KEY, NOT NULL,


UNIQUE, CHECK,
• SQL VIEWS, CREATE, DELETE, UPDATE, ALTER
• AVG, SUM, MAX, MIN
• AS
• COUNT
• GROUP BY
• ORDER BY
• HAVING
• COUNT (*) >
• TRIGGERS
Unit – 4 : Advanced SQL
Objective4: To understand joins and sub-query and co-related
sub-queries.
– SQL JOIN operations
– INNER JOIN
– LEFT OUTER JOIN
– RIGHT OUTER JOIN
– FULL OUTER JOIN

– Advanced SQL Queries


– Nested QUERIES
– Sub-queries
– Co-related sub-queries
Unit – 5 : Normalization and Stored
Procedures
Objective5: Normalization and Stored
Procedures
• Normalization process
• Given a relation with many problems, students
will apply Normalization process to convert
the relation into 1 or more relations.
• Writing Stored procedures.
Text Book
• Elmasri R and Navathe S B, “Fundamentals of
Database System”, Pearson Education.
Definitions

• Data

• Information

• System

• Database

You might also like