Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

Diploma Engineering

Semester III

CE, IT, AIML, Cloud Computing &


Big Data, Gaming & Animation
An Overview of Major Computer & Technology Disciplines

Computer Engineering is a branch of engineering


that integrates several fields of computer science and
electronic engineering required to develop computer
hardware and software. Computer engineers design,
test, implement and maintain computer software and
hardware systems.

Information Technology (IT) is the use of computers


to store or retrieve data and information. IT is typically
used within the context of business operations as
opposed to personal or entertainment technologies.
You can find IT specialization in every branch of
education, from IT & Software, Engineering, Aviation
and Medicine to MBA and even Hospitality.

Artificial Intelligence (AI) is intelligence


demonstrated by machines, as opposed to the natural
intelligence displayed by humans or animals. AI
applications include advanced web search engines,
recommendation systems used by YouTube, Amazon
and Netflix, Siri or Alexa, Tesla, and strategic game
systems (such as chess and Go).

Cloud Computing & Big Data is the on-demand


availability of computer system resources, especially
data storage (cloud storage) and computing power,
without direct active management by the user. Big data
is a field that treats ways to analyze, systematically
extract information from, or otherwise, deal with data
sets that are too large or complex to be dealt with by
traditional data-processing application software.

Gaming & Animation is the process of


developing/designing a game. The effort is
undertaken by a developer, ranging from a single
person to an international team dispersed across the
globe. Animation is a method in which figures are
manipulated to appear as moving images. Various
tools available in the market today, ease out the tasks
of game development and animation.
Disclaimer
This handbook is compiled to provide subject information to the students. Every
effort has been made to avoid errors & omissions and ensure accuracy. Any error
noted may be brought to the notice of the compiler, which shall be taken care of in
the updated edition of this handbook. The sources of information/material are
provided in the appendix.
The information contained in this handbook is strictly for education and learning
purposes and not for any commercial use.
Furthermore, The University reserves the right to unilaterally and without notice
make changes to this handbook at any time.
Evaluation Methodology
Theory Marks
PA: Progressive Assessment
Units’ examinations will be conducted during the semester. Each unit examination is compulsory.
Unit examination may be taken from objectives, short questions, long questions, etc.

Unit-1 Exam: Maximum Marks 10


Unit-2 Exam: Maximum Marks 10
Unit-3 Exam: Maximum Marks 10
Unit-4 Exam: Maximum Marks 10
__________________________________________
Total Marks 40

ESE: End Semester Exam


End semester examination will be conducted from all Five (5) units and it is compulsory. It may
be taken in the form of objectives, short questions, long questions etc.

End Semester Exam: Maximum Marks 50

CA: Continuous Assessment


Continuous assessment will be evaluated from the activity assigned in the semester and the
attendance of that particular subject.

Activity Assessment / Attendance: Maximum Marks 10

Practical Marks
PV: Practical Viva
Practical viva will be conducted through group task. Thereafter viva will be conducted
individually based on the given task of the concerned subject.

Practical Viva: Maximum Marks 30

TW: Term Work


Term work will be considered from the assignment and laboratory work done by the student during
the semester of that particular subject.

Term Work: Maximum Marks 20


EVALUATION SCHEME

The performance of students is evaluated on the basis of continuous and semester-end


examinations with letter grades O+++, O++, A++, B, etc. Which have numerical equivalents called
grade points as indicated below:

Percentage Grade Point Grade Class


95 100 10 O+++
90 94 9.5 O++
85 89 9 O+ First Class with
80 84 8.5 O Distinction
75 79 8 A++
70 74 7.5 A+
65 69 7 A
First Class
60 64 6.5 B++
55 59 6 B+ Higher Second Class
50 54 5.5 B
45 49 5 C Second Class

ic
40 44 4.5 D
35 39 4.0 E Pass Class
less than 35 0 F Fail

hn
The performance of a student in a semester is indicated by a number called SPI (Semester
Performance Index). The SPI is the weighted average of the grade points obtained in all the subjects
taken by the student during the semester. Example: Suppose in a given semester a student has taken
ec
subjects having credits C1, C2, C3, C4, C5..... And the numerical equivalent of grades obtained in
those subjects are G1, G2, G3, G4, and G5 respectively.
yt
Grade Points Earned ∑𝑛
𝑖=1 𝐶𝑖 𝐺𝑖
Then his/her SPI = Total Offered Credits = ∑𝑛
𝑖=1 𝐶𝑖

SPI will be calculated (after re-examination, if any) up to two decimal places on the basis of the final
ol

grades.
An overall assessment from the time the student entered the course is obtained by calculating PPI
P

(Progressive Performance Index). The PPI is the weighted average of the grade points obtained in
all the subjects taken by the student since he/she entered the course. It is calculated in the same
manner as the SPI. The CGPA (Cumulative Grade Points Average) is the weighted average of the
LJ

grade points obtained in all the subjects in the last six semesters of the course.
Detention:
Formula for conversion of equivalent percentage of PPI
An equation to find equivalence between PPI or CGPA may be obtained as follows:
Percentage Marks = (PPI or CGPA — 0.5) x 10. SPI or PPI or CGPA equivalent class shall be as
follows:
Below 4.00 : Fail
4.00 – 4.49 : Pass Class
4.50 – 5.50 : Second Class
5.51 – 6.00 : Higher Second Class
6.01 – 7.49 : Firsrt Class
7.50 and above : First Class with Distinction

For all courses, where the duration of the course is more than 2 years, the degree shall be awarded
to the students on the basis of CGPA of the last six semester's performance in the exams.

In case of the courses where duration is of two years, the degree shall be awarded to students based
on PPI considering the performance in all four semesters.
About Bloom’s Taxonomy
Bloom’s Taxonomy is a classification of the different objectives and skills that educators set for
their students (learning objectives). The taxonomy was proposed in 1956 by Benjamin Bloom, an
educational psychologist at the University of Chicago. The terminology has been recently updated
to include the following six levels of learning. These 6 levels can be used to structure the learning
objectives, lessons, and assessments of your course.
1. Remembering: Retrieving, recognizing, and recalling relevant knowledge from long‐term
memory.
2. Understanding: Constructing meaning from oral, written, and graphic messages through
interpreting, exemplifying, classifying, summarizing, inferring, comparing, and explaining.
3. Applying: Carrying out or using a procedure for executing, or implementing.
4. Analyzing: Breaking material into constituent parts, determining how the parts relate to one
another and to an overall structure or purpose through differentiating, organizing, and
attributing.
5. Evaluating: Making judgments based on criteria and standards through checking and
critiquing.
6. Creating: Putting elements together to form a coherent or functional whole; reorganizing
elements into a new pattern or structure through generating, planning, or producing.
Database Management System

DATABASE MANAGEMENT
SYSTEM

Prepared and Compiled by


CE & IT Department

LJ Polytechnic
Database Management System

Course
Course Name Database Management System
Course Type HSSC BSC ESC PCC OEC PEC
Legends: HSSC: Humanities and Social Sciences Courses
BSC: Basic Science Courses
ESC: Engineering Science Courses
PCC: Program Core Courses
OEC: Open Elective Courses
PEC: Program Elective Courses

Teaching and Evaluation Scheme


Evaluation Scheme
Teaching Hours / Week
Theory Marks Practical Marks
Total
Total
L T P ESE CA PA Total PV TW Total Marks
Credit
3 - 4 5 50 10 40 100 30 20 50 150
Legends: ESE: End Semester Exam
CA: Continuous Assessment (Attendance + Activity)
PA: Progressive Assessment
PV: Practical Viva
TW: Term Work

LJ Polytechnic
Database Management System

Contents
Unit %
Topics Sub-Topics Learning Outcomes Hours
No. Weightage
1.1. Introduction:
Basic Terms of • Basics of
Database, Need Database
of Database,
Operations on • Fundamentals of
Database, DBMS
Applications of
Database, Tools • Functions and
of Database Responsibilities
Introduction
1.2. Data of DBA
of Database
1 Administrator 20 8
Management
System
(DA) & Database • Basics of Data
Administrator Dictionary and
(DBA) Data Warehouse
1.3. Data Dictionary
1.4. Data Warehouse • Merits and
1.5. File-oriented demerits of
System & Database
Database Management
Management System
System
• Fundamentals of
Database
Architecture
2.1.Introduction
2.2.Database
Database • Data
Architecture
2 Architecture Independence and 20 8
2.3.Data Independence
its types
2.4.Mapping
2.5.Types of DBMS
• Mapping

• Types of DBMS
• Basics of SQL

• Perform different
3.1. Introduction
types of SQL
3.2. Datatypes
Commands
Structured 3.3. SQL Commands
Query 3.4. DUAL table and
3 • Execute various 25 10
Language SYSDATE
SQL Operators
(SQL) 3.5. SQL Operators
and Functions
3.6. SQL Functions
3.7. SQL Constraints
• Execute various
ORACLE clauses

LJ Polytechnic
Database Management System

• Implementation of
Domain Integrity,
• Entity Integrity
Constraints,
Referential
Integrity
Constraint
• Design of
Relational Model
• Implementation of
4.1.Introduction Set Operation
4.2.Structure of using SQL
Relational Model
Relational 4.3.Set Operations • Implementation of
4 20 8
Model 4.4.Keys Keys using SQL
4.5.Relational Algebra
4.6.Sub-Queries • Perform Sub-
4.7.Joins Queries

• Implementation of
Joins
5.1.Introduction
• Design E-R
5.2.Basic Terms of E-R
Model
Model
5.3.Design E-R Model
Entity- • Problems with E-
5.4.Problems with E-R
5 Relationship R Model 15 8
Model
Model
5.5.Basics of Enhanced
E-R Model • Concept of
5.6.Specialization Specialization and
5.7.Generalization Generalization
Total
42
Hours

Suggested Specification Table with Hours


Distribution of Topics
According to Bloom’s
Unit Teaching
Chapter Name Taxonomy
No. Hours
R U App C E An
% % % % % %
Introduction of Database Management
1 8 30 40 30 - - -
System
2 Database Architecture 8 30 30 40 - - -
3 Structured Query Language (SQL) 10 20 25 40 5 5 5
4 Relational Model 8 20 35 30 5 5 5
5 Entity-Relationship Model 8 30 40 15 5 5 5

LJ Polytechnic
Database Management System

Legends: R: Remembering U: Understanding


App: Applying C: Creating
E: Evaluating An: Analyzing

Textbooks
1. Database System Concept, Design and Applications by S.K.Singh,Pearson Education
2. SQL-PL/SQL by Ivan Baryons,Bbp Publication

Reference Books
1. An Introduction To Database Systems by C.J date, Addison Welsley
2. Database System Concepts, Silberschatz, Korth and Sudarshan, McGraw Hill
3. Oracle 11g: Complete reference, Kevin Loney, McGraw Hill.
4. Mastering SQL, Martin Gruber, B.P.B.

Open Sources (Website, Video, Movie)


1. https://www.coursera.org/learn/database-management
2. https://nptel.ac.in/courses/106/106/106106220/
3. https://www.sqlcourse.com/
4. https://www.tutorialspoint.com/dbms/index.htm

LJ Polytechnic
Database Management System

Introduction
Computer engineers have to write programs to cater to various IT solutions. To develop a program,
they have to build logic, develop SQL programs. This course has been designed keeping in view
of developing these skills. Besides its use to write codes for SQL programming such as developing
a banking system, railway reservation system and so on. Database Management System has been
widely used as a general-purpose language to develop basic applications. This course deals with
fundamental syntactic information about database and SQL programming that will help students
to apply the basic concepts, program structure of SQL programming paradigm to build given
application.

Objectives
✓ This course aims to help the students to attain the following industry-identified competency
through various teaching-learning experiences,
✓ Designing and Implementation of database management system.
✓ Development of programming to manipulating and retrieve data using ‘SQL’.

Subject’s Learning Outcomes


This course aims to the concepts of database management system and SQL programming. The
special track is organized as a series of lectures and exercises using the SQL programming
language. It also focuses on discussing how to write a program of moderate complexity by using
SQL language. Students will enhance the ability to design, develop, analyzes, and interprets
different concepts of database architecture, data independence, Structured Query Language,
Relational Model, and E-R Model. The students will also develop the skills to design database
system and develop application programs to manage & retrieve data from different perspective
using Structured Query Language (SQL) in ORACLE.

LJ Polytechnic
Database Management System

Introduction of
Database Management
System
Short Questions

Q. Bloom’s
Sample Questions
No. Taxonomy
1. What is Database? What is need of Database? Understand
2. Which are operations to be performed on Database? Remember
3. List out application of DBMS. Remember
4. What is DBA? Understand
5. List Function and Responsibility of DBA. Remember
6. Define: Data, Field, Record, DBMS. Remember
7. Define: System catalog. Remember
8. Define: Metadata. Remember
9. Differentiate Data and Information. Remember
10. List disadvantages of DBMS. Remember
11. Give the advantages of DBMS. Remember
12. Give the disadvantages of File-oriented system. Remember
13. Give the advantages of File-oriented system. Remember
14. What is File? Understand
15. Define: Active Data Dictionary, Passive Data Dictionary. Remember

Long Questions

Q.
Sample Questions Bloom’s
No.
Taxonomy
1. Explain advantages of File-oriented System. Remember
2. Explain disadvantages of File-oriented System. Remember
3. Explain advantages of Database Management System. Remember
4. Explain disadvantages of Database Management System. Remember
5. Explain DA and DBA. Understand

LJ Polytechnic
Database Management System

6. Explain Function and Responsibility of DBA. Understand


7. Differentiate Active Data Dictionary and Passive Data Dictionary. Understand
8. Explain Data Warehouse in detail. Remember

Essential Assignments

1. Differentiate Data and Information.


2. Differentiate DBA and DA.
3. Explain Data Dictionary with its types.
4. Write a short note on Data Warehouse in detail.
5. Why Database Management System is better than File-oriented System?

Activities

1. Prepare Statistical document by examining Student Grade History and bifurcate data
and information parameters.
• Generally, Student Grade History includes combination of various data and
information.
• Student upon carefully examining particular Grade History will indicate which
parameters to be considered as data and information.
• A Statistical document may include graphical data such as table and charts.
2. Prepare a case study on various database management system available.
• A case study will include various DBMS being used in various fields now a days.
Document will cover aspects of essentiality of all DBMS listed previously such as
type, Name, logo, makers/founders, current version, possible application(s).
• One can make chart/graph or presentation for the same.

Learning Outcomes
❖ Basic concepts of Database and Database Management System will be learnt like need,
operations and application of Database, fundamental terms of Database.

❖ Concept of Data Administrator and Database Administrator will be understood and


Function and Responsibility of DBA will be covered.

❖ Concept of Data Dictionary and Data Warehouse will be understood.

❖ Concept of File-oriented System and Database Management System with merits and
demerits will be understood.

LJ Polytechnic
Database Management System

Database
Architecture

Short Questions

Q. Bloom’s
Sample Questions
No. Taxonomy
1. Define Schema and Instance. Remember
2. What is Physical Data Independence? Understand
3. What is Logical Data Independence? Understand
4. Define: Mapping? Remember
5. List out different Data Models. Remember
6. Differentiate Physical Data Independence and Logical Data Understand
Independence.
List different layers of ANSI-SPARC Three-tier Database
7. Remember
Architecture.
8. List out different Database Systems. Remember
9. Which of the levels is considered as the level closed to the end- Remember
users?
10. The top level of the hierarchy consists of ______ each of which Remember
can contain _____.
11. The oldest DB Model is ________ . Remember

Long Questions

Q. Bloom’s
Sample Questions
No. Taxonomy
1. What is Data Independence? Explain types of Data Independence. Understand
2. Explain Mapping in Three-tier Database Architecture. Understand
3. Explain various types of Data Model in detail. Understand
4. List out types of Database System and explain any one Database Understand
System.
5. Explain ANSI-SPARC Three-tier Database Architecture. Understand
6. Explain the advantages of Three-tier Database Architecture. Understand

LJ Polytechnic
Database Management System

Essential Assignments

1. Explain data abstraction levels of Database.


2. Explain External/Conceptual Mapping and Conceptual/Internal Mapping.
3. Write a short note on Data Independence.
4. Explain various types of Data Models.

Activities

1. Prepare case study document by examining Database Architecture.


• A case study will include various types of Database Architecture and add which
Database Architecture is preferred now a days.
• A case study will also include application of Database Architecture and mention
merits and demerits of Database Architecture.
• Students can make a ppt for the same.
2. Prepare Statistical document by identify ANSI-SPARC Three-tier Database
Architecture.
• This document will include various layers of ANSI-SPARC Database Architecture.
• A statistical document will include real time application which is followed by Three-
tier Database Architecture.
• A Statistical document may include graphical data such as diagram or charts.

Learning Outcomes

❖ Basic concepts of Three-tier ANSI-SPARC Database Architecture will be understood


which is followed by terms of Schema, Subschema, and instance.
❖ Concept of Data Independence with its types and Mapping will be learnt.
❖ Structure of Database and components at certain level will be learnt.
❖ Various types of Database System will be learnt.

LJ Polytechnic
Database Management System

Structured
Query Language
(SQL)
ssss
Practical List

1. Implement SQL queries to perform various DDL, DML, DQL Commands.


2. Implement various SQL Operators such as Arithmetic, Logical and Relational
Operators.
3. Implement SQL queries using Numeric Functions: abs, ceil, cos, cosh, exp, floor,
power, mod, round, trunc, sqrt etc.
4. Implement SQL queries using Character Functions: initcap, lower, upper, ltrim,
rtrim, translate, replace, substring etc.
5. Implement SQL queries using Conversion Functions: to-char, to-date, to-number
and Miscellaneous functions like uid, user, nvl, vsize etc.
6. Implement SQL queries using Date Functions: add-months, months-between,
round, nextday, truncate, greatest, new-time etc.
Implement SQL queries using Aggregate (Group) Functions: min, max, sum,
7.
count, avg etc.
8. Implement GROUPBY and HAVING clauses using SQL.
9. Implement various types of Constraints using SQL.

Short Questions

Q. Bloom’s
Sample Questions
No. Taxonomy
1. SQL stands for _____________. Remember
2. List different types of SQL datatypes. Remember
3. List DDL commands in SQL. Remember
4. List DML commands in SQL. Remember
5. What is DUAL table? Understand
6. List out different types of SQL Operators. Remember
7. List out different types of SQL Functions. Remember
8. What is Constraint? Understand
9. List out different types of SQL Constraints. Remember
10. Explain meanings of following SQL wildcards. Remember

LJ Polytechnic
Database Management System

(1) % (2)_
11. Differentiate between delete and truncate. Understand
12. List any four Date Functions with example. Apply
13. List any four Numeric Functions with example. Apply
14. List any four Miscellaneous Functions with example. Apply
15. List any four Character Functions. Apply

Long Questions
Q. Bloom’s
Sample Questions
No. Taxonomy
1. What is DDL statement? Enlist and explain all DDL statements in Understand
SQL with syntax and example.
2. What is DML statement? Enlist and explain all DML statements Apply
in SQL with syntax and example.
3. Explain Aggregate Function with example. Apply
4. Explain Numeric Function with example. Apply
5. Explain Character Function with example. Apply
6. Explain SQL Operators with example. Apply
8. Explain SQL Constraints with example. Evaluate

Essential Assignments
1. Explain various types of SQL datatypes.
2. Explain DDL commands with example.
3. Explain DML commands with example.
4. Explain various SQL Operators with example.
5. Explain various SQL Functions with example.
6. Explain SQL Constraints with its types with example.

Desirable Assignments
1. Create department table with the following structure.
Name Type
Dept_no Number
Dept_Name Varchar(20)
Location Varchar(20)

• Add column designation to the department table.

LJ Polytechnic
Database Management System

• Insert values into the table.


• List the records of emp table grouped by deptno.
• Update the record where department no. is 9.
• Delete any column data from the table.
2. Consider the schema for Movie Database:
ACTOR(Act_id, Act_Name, Act_Gender), DIRECTOR(Dir_id, Dir_Name,
Dir_Phone) MOVIES(Mov_id, Mov_Title, Mov_Year, Mov_Lang,
Dir_id),MOVIE_CAST(Act_id, Mov_id, Role) RATING(Mov_id, Rev_Stars)
Write SQL queries to
• List the titles of all movies directed by ‘Hitchcock’.
• Find the movie names where one or more actors acted in two or more movies.
• 3. List all actors who acted in a movie before 2000 and also in a movie after 2015
(use JOIN operation).
• Find the title of movies and number of stars for each movie that has at least one
rating and find the highest number of stars that movie received. Sort the result by
movie title.
• Update rating of all movies directed by ‘Steven Spielberg’ to 5.

Activities

1. Consider the following schema for Order Database:


SALESMAN(Salesman_id, Name, City, Commission)
CUSTOMER(Customer_id, Cust_Name, City, Grade, Salesman_id)
ORDERS(Ord_No, Purchase_Amt, Ord_Date, Customer_id,
Salesman_id)
Write SQL queries to
• Count the customers with grades above Bangalore’s average.
• Find the name and numbers of all salesman who had more than one customer.
• List all the salesman and indicate those who have and don’t have customers in their
cities (Use UNION operation.)
• Create a view that finds the salesman who has the customer with the highest order
of a day.
2. Consider the schema for College Database: STUDENT(USN, SName, Address, Phone,
Gender) SEMSEC(SSID, Sem, Sec) CLASS(USN, SSID) SUBJECT(Subcode, Title,
Sem, Credits) IAMARKS(USN, Subcode, SSID, Test1, Test2, Test3, FinalIA)
Write SQL queries to
• List all the student details studying in fourth semester ‘C’section.
• Compute the total number of male and female students in each semester and in each
section.
• Create a view of Test1 marks of student USN ‘1BI15CS101’ in all subjects.

LJ Polytechnic
Database Management System

• Calculate the FinalIA (average of best two test marks) and update the corresponding
table for all students.
• Categorize students based on the following criterion: If FinalIA = 17 to 20 then CAT
= ‘Outstanding’ If FinalIA = 12 to 16 then CAT = ‘Average’ If FinalIA< 12 then
CAT = ‘Weak’ Give these details only for 8th semester A, B, and C section students.
3. Consider the following schema for a Library Database:
BOOK(Book_id, Title, Publisher_Name, Pub_Year)
BOOK_AUTHORS(Book_id, Author_Name)
PUBLISHER(Name, Address, Phone)
BOOK_COPIES(Book_id, Branch_id, No-of_Copies)
BOOK_LENDING(Book_id, Branch_id, Card_No, Date_Out,
Due_Date)
LIBRARY_BRANCH(Branch_id, Branch_Name, Address)
Write SQL queries to
• Retrieve details of all books in the library – id, title, name of publisher, authors,
number of copies in each branch, etc.
• Get the particulars of borrowers who have borrowed more than 3 books, but from
Jan 2017 to Jun 2017.
• Delete a book in BOOK table. Update the contents of other tables to reflect this data
manipulation operation.
• Partition the BOOK table based on year of publication, Demonstrate its working
with a simple query.
• Create a view of all books and its number of copies that are currently available in
the Library.

Learning Outcomes

❖ Basic concepts of SQL and various types of SQL Commands will be learnt.
❖ Concept of various types of SQL Operators will be learnt and program could be
developed for the same.
❖ Concept of various types of SQL Functions will be learnt and develop programs using
SQL Functions.
❖ SQL Constraints will be learnt and various types of SQL Constraints programs could
be developed.

LJ Polytechnic
Database Management System

Relational Model

Practical List

1. Implement Set Operations such as UNION, INTERSECT, MINUS using SQL.


2. Implement Sub-Query using SQL.
3. Implement Inner Join using SQL.
4. Implement Outer Join using SQL.
5. Implement Left Join using SQL.
6. Implement Right Join using SQL.

Short Questions

Q. Bloom’s
Sample Questions
No. Taxonomy
1. In the relation model, the relation is generally termed as Remember
________.
2. What do you mean by Entity? Remember

3. In the relational table, which of the following can also be Remember


represented by the term "attribute"?
4. In a relation database, every tuples divided into the fields are Remember
known as the______.
5. Which key is generally used to represents the relationships Evaluate
between the tables?
6. Define Relational Algebra and Domain. Remember
7. Give definition of Candidate Key. Remember
8. List out operation of Relational Algebra with their symbols. Understand
9. Give name of different types of Sub-Queries. Remember
10. Define Composite Primary key. Remember
11. List different types of joins and explain outer join with example. Remember
12. What is an Equi-join? Understand
13. What is difference between Primary Key and Unique Key? Understand

LJ Polytechnic
Database Management System

Long Questions

Q. Bloom’s
Sample Questions
No. Taxonomy
1. Explain Relational Model with example. Understand
2. Explain Set Operations with example. Understand
3. Explain Primary Key and Foreign Key with example. Understand
4. Explain different operations in Relational Algebra. Understand
5. What is Sub-Query? Explain with example. Understand
6. Differentiate Primary Key and Foreign Key. Understand
7. Explain Inner Join with example. Understand
8. Explain Outer Join with example. Understand

Essential Assignments

1. Explain Relational Model in detail.


2. Explain various Set Operations with syntax and example.
3. Explain different types of Keys with example.
4. Explain Sub-Queries and correlated Sub-Queries with example.
5. Explain various Joins with example.

Desirable Assignments

1. From the given tables schema: Salesman (salesman_id, name, city, commission),
Customer(c_id, cust_name,city, grade, salesman_id)
Write a SQL query to find the salesperson and customer who belongs to same city.
Return Salesman, cust_name and city.
2. Consider given two tables schema:
Foods (ITEM_ID, ITEM_NAME,ITEM_UNIT,COMPANY_ID),
Counter_Sale (BILL_NO,ITEM_ID,S L_QTY,SL_RATE,BILL_AMT).
Write a SQL query for following Statement,
To filtered out those bill number, item name and the bill amount for each bill which
bill amount exceeds the value 500 and must be available at the food stall.

Activities

1. Consider the following relational database schema consisting of the


four relation schemas:
passenger (pid, pname, pgender, pcity)

LJ Polytechnic
Database Management System

agency (aid, aname, acity)


flight (fid, fdate, time, src, dest)
booking (pid, aid, fid, fdate)
Answer the following questions using relational algebra queries.
a. Get the details about all flights from Chennai to New Delhi.
b. Get the complete details of all flights to New Delhi.
c. Find the passenger names for passengers who have bookings on at least one flight.

Learning Outcomes

❖ Basic concepts of Relational Model and general terms of Relational Model will be
covered.
❖ Concept of Relation Algebra with its operations will be learnt.
❖ Various types of Keys used in Relation and usage of keys in real time scenario.
❖ Concept of Sub-Queries and correlated Sub-Queries will be learnt.
❖ Basic concept of various types of Joins will be learnt.

LJ Polytechnic
Database Management System

Entity Relationship
Model

Short Questions

Q. Bloom’s
Sample Questions
No. Taxonomy
1. What is E-R Model? What is need of E-R Model? Understand
2. Define Entity, Relationship and Attribute. Remember
3. Draw any four symbols of E-R Diagram Remember
4. The term "E-R" stands for___________. Remember
________ is known as a set of entities of the same type that share
5. Remember
same properties, or attributes.
6. What is Super Class and Sub Class? Understand
7. Define: Specialization, Generalization Remember
8. Differentiate between simple attribute and composite attribute. Understand
9. Differentiate Concrete Entity and Abstract Entity. Understand
10. What is Weak Entity? Understand
11. Define: Derived Attribute Remember

Long Questions

Q. Bloom’s
Sample Questions
No. Taxonomy
1. Write a short note on E-R Model. Understand
2. What is E-R Diagram? Explain in brief with example. Understand
3. Explain problems with E-R Diagram with example. Understand
4. Construct an E-R diagram for Library Management System. Create
5. Explain Specialization with example. Understand
6. Explain Generalization with example. Understand
7. Explain total and partial participation in E-R Model with example. Understand

Essential Assignments

1. What is E-R Diagram? Explain with symbols which is used in E-R Diagram.

LJ Polytechnic
Database Management System

2. Explain Mapping Cardinality in E-R diagram.


3. Explain various types of Attributes and Entity with example.
4. What is Specialization? Explain with any real time scenario.
5. What is Generalization? Explain with any real time scenario.

Activities

1. Draw an E-R Diagram of the following scenario. Make necessary assumptions and
clearly note down the same. We would like to make our college’s manually operated
Library to fully computerized.
2. Draw E-R Diagram for university database consisting of four entities Student,
Department, Class and Faculty.
• Student has a unique id, the student can enroll for multiple classes and has a most
one major.
• Faculty must belong to a department and faculty can teach multiple classes. Each
class is taught by only faculty.
• Every student will get a grade for the class he/she has enrolled.

Learning Outcomes

❖ Basic terms of E-R Diagram will be learnt like Entity, Attributes, Relationship and
cardinality with their Symbols.
❖ Basic rules to build E-R Diagram will be learned, through that student can design E-
R Diagram.
❖ Problems with E-R Diagram and their solution will be learnt.
❖ Basic Concept of Enhanced Entity Relationship Model will be learnt.
❖ Concept of Super Class, Sub Class, Specialization and Generalization will be learnt.

LJ Polytechnic
Quotes from Pioneers

“The advance of technology is based on making it fit in so that


you do not really even notice it, so it is part of everyday life.”
- Bill Gates, Co-Founder, Microsoft.

“Have the courage to follow your heart and intuition. They


somehow already know what you truly want to become.
Everything else is secondary.”
- Steve Jobs, Co-Founder, Apple Inc.

“Success breeds complacency. Complacency breeds failure.


Only the paranoid survives.”
- Andy Grove, Former Chairman & CEO, Intel.

“If you are changing the world, you are working on important
things. You’re excited to get up in the morning.”
- Larry Page, Co-Founder, Google & Alphabet Inc.

“Progress is often equal to the difference between mind and


mindset.”
- N. R. Narayana Murthy, Chairman Emeritus, Infosys.

“The only way to learn new programming language is by


writing programs in it.”
- Dennis Ritchie, Co-Creator of C Programming.

“Success is achieved twice. Once in the mind and the second


time in the real world.”
- Azim Premji, Founder Chairman, Wipro.

“The digital world has power because it has dynamic


information, but it's important that we stay human instead of
being another machine sitting in front of a machine.”
- Pranav Mistry, President & CEO of STAR Labs.
LJ Polytechnic

Offers Diploma in
❖ Artificial Intelligence & Machine Learning ❖ Automobile Engineering
❖ Electronics & Communication Engineering ❖ Mechanical Engineering
❖ Cloud Computing & Big Data ❖ Information Technology
❖ Architectural Assistantship ❖ Computer Engineering
❖ Automation & Robotics ❖ Electrical Engineering
❖ Gaming & Animation ❖ Civil Engineering

info_poly@ljku.edu.in

www.ljku.edu.in

9687010057
9228010057

LJ Campus,
Near Sarkhej-Sanand Circle, Off. S. G. Road, Ahmedabad, Gujarat-382210

You might also like