Introduction To Data Base Management Systems Syllabus
Introduction To Data Base Management Systems Syllabus
Course Objectives:
The objectives of this course can be illustrated as:
Pre-requisites:
Basic Knowledge of Programming Language
Course Contents/Syllabus:
Weightage (%)
Module I Introduction to DBMS 20%
Descriptors/Topics
Definition of DBMS, Data Independence, DBMS Architecture, Levels, Database Administrator, File System Approach Vs DBMS Approach,
Advantages of Using a DBMS, Data Models , Schemas, and Instances.
Domains and Relations, Relational Data Integrity ; Primary Key, Candidate Key , Foreign Key and their rules; Relational operators, Relational
Algebra, Relational Calculus, SQL Language, Data definition, Data retrieval and update operations.
Activity 1 Self-Work activities can be conducted by dividing the class into group of 3-4 students and same will be evaluated by board of
faculty members along with the group report. Some of the suggested activities are:
1 Case study on Banking system
2.Case study on Automation system of marketing company
3. Case study on Healthcare system
4. Case study on Normalization
5. Case study on Airline company
2. A General Hospital consists of a number of specialized wards (such as Maternity, Paediatry, Oncology, etc). Each ward
hosts a number of patients, who were admitted on the recommendation of their own GP and confirmed by a consultant
employed by the Hospital. On admission, the personal details of every patient are recorded. A separate register is to be
held to store the information of the tests undertaken and the results of a prescribed treatment. A number of tests may be
conducted for each patient. Each patient is assigned to one leading consultant but may be examined by another doctor, if
required. Doctors are specialists in some branch of medicine and may be leading consultants for a number of patients, not
necessarily from the same ward.
3. A database is to be designed for a Car Rental Co. (CRC). The information required includes a description of cars,
subcontractors (i.e. garages), company expenditures, company revenues and customers. Cars are to be described by such
data as: make, model, year of production, engine size, fuel type, number of passengers, registration number, purchase
price, purchase date, rent price and insurance details. It is the company policy not to keep any car for a period exceeding
one year. All major repairs and maintenance are done by subcontractors (i.e. franchised garages), with whom CRC has
long-term agreements. Therefore the data about garages to be kept in the database includes garage names, addressees,
range of services and the like. Some garages require payments immediately after a repair has been made; with others CRC
has made arrangements for credit facilities. Company expenditures are to be registered for all outgoings connected with
purchases, repairs, maintenance, insurance etc. Similarly the cash inflow coming from all sources - car hire, car sales,
insurance claims - must be kept of file.CRC maintains a reasonably stable client base. For this privileged category of
customers special credit card facilities are provided. These customers may also book in advance a particular car. These
reservations can be made for any period of time up to one month. Casual customers must pay a deposit for an estimated
time of rental, unless they wish to pay by credit card. All major credit cards care accepted. Personal details (such as name,
address, telephone number, driving licence, number) about each customer are kept in the database.
4. A database is to be designed for a college to monitor students' progress throughout their course of study. The students are
reading for a degree (such as BA, BA(Hons) MSc, etc) within the framework of the modular system. The college provides
a number of module, each being characterised by its code , title, credit value, module leader, teaching staff and the
department they come from. A module is co-ordinated by a module leader who shares teaching duties with one or more
lecturers. A lecturer may teach (and be a module leader for) more than one module. Students are free to choose any
module they wish but the following rules must be observed: some modules require pre-requisites modules and some
degree programmes have compulsory modules. The database is also to contain some information about students including
their numbers, names, addresses, degrees they read for, and their past performance (i.e. modules taken and examination
results).
Activity 3 Implementation and description of SQL Functions: Date, Numeric, Character, Aggregate &etc.
Activity 4 Implementation of database query in the form of relational algebra and relational calculus
List of Experiments:
1) Create a table “PRODUCTS” with the below mentioned structure:
Product ID NUMBER(11)
Supplier ID NUMBER(11)
Category ID NUMBER(11)
Quantity Per Unit VARCHAR2(20)
Unit Price NUMBER(11)
Units In Stock NUMBER(11)
Units On Order NUMBER(11)
Product ID should be the Primary Key.
3) Create table EMP and DEPT with the below mentioned structure
Structure for EMP table
EmpID NUMBER(4)
DeptID VARCHAR2(10)
EmpName CHAR(10)
Job CHAR(10)
HireDate DATE
Salary NUMBER(7, 2)
Commission NUMBER (7, 2)
Structure for DEPT table
DeptId VARCHAR2(10)
Deptname VARCHAR2(20)
No_of_Faculties NUMBER(2)
In table EMP : EmpID should be the Primary Key and DeptID should be the foreign
key.
In table DEPT : DeptId should be the primary key.
5) Considering the above table i.e EMP write the queries for the following:
a) Find out the number of employees having “manager” as job.
b) Display only the jobs with maximum salary greater than or equal to 3000
c) Find all those employees whose job does not start with ‘M’.
d) Find the names of the employees whose name starts with ‘S’.
e) Find the names of the employees who are Managers and their date of joining is after
“02-Jan-2006”.
f) For describing the structure of the EMP table and DEPT table.
g) For getting the average salary of the employees from EMP table.
h) For displaying the current date and give the column a name “DATE”.
i) For converting the name of the employee into uppercase where the employee name is
“Santy”
j) Create a sequence with name SEQ_EMP , which will generate numbers from 1 to 99
in ascending order with an interval of 1. The sequence must
start from 1 after generating the number 99.
k) Displaying the names of the employees who have an a and an e in their names.
6. Considering the table DEPT in question 3, find the total number of departments.
7. Alter the EMP table for the changing the width of the field EmpID from 4 to 10.
8. .Alter the DEPT table for changing the width of the field No_of_Faculties from 2 to
4.
9. Delete all the records from the EMP table where the EmpName starts with “S”,
10. Insert some values in the PRODUCTS table created in Question 1 and then DROP
the table PRODUCTS.
13. Write a query to select all the records from the EMP table.
14. Write a query to select all the records from the DEPT table.
15. Write a query to select the distinct deptid from EMP table.
16. Write a query to find the name and salary of the employee from EMP table where
the salary is maximum.
17. Create a view amed v_EMP on the table EMP,DEPT by selecting the following
fields
Emp ID, Dept ID, Emp Name, Job
Where the EMP.Dept ID = DEPT. DeptId.
20. Create a trigger named “Client_Master” which keeps track of records deleted or
updated when such operations are carried out. Records in this table are
inserted into table “Audit” when database trigger fires due to an update or delete
statement fired on this table “Client”.
Table: Client
Column name Data type Size
Client_no Varchar2 6
Name Varchar2 20
Address Varchar2 30
Balance_Due Number 10,2
Write a sql query to drop the table EMP, can we drop a table with data in it.
75 25
Weightage (%) 5 10 20 5 60
Assessment
type/PSDA
PSDA 1
PSDA 2 √ √
PSDA 3 √ √
PSDA 4 √ √
QUIZ √
MCQ √
Group √
Discussion
Text Reading:
Elmasri & Navathe,” Fundamental of Database Systems”, Pearson Education, Seventh Edition, 2016
Korth & Sudarshan,” Database System Concepts”,TMH, Sixth Edition, 2010
C.J.Date,” An Introduction to Database System”, Pearson Education, Eighth Edition, 2009
References:
Bipin C Desai,” Introduction to Database Systems”, Galgotia publications, Revised Edition, 2010
Kevin Loney & Geroge Koch ,“Oracle 9i :The Complete Reference”, TMH Edition 2002
Ivan Bayross,” SQL,PL/SQL The Programming Language Of Oracle”, BPB Publications, Third Revised Edition, 2009.