0% found this document useful (0 votes)
120 views10 pages

DBMS and GUI Lab

This document outlines a course on DBMS and GUI lab. It provides objectives, outcomes, topics, and a list of graded practical exercises related to designing databases, querying with SQL, and developing GUI applications. Students will learn database concepts, design, normalization, and how to query and manipulate data with SQL. They will also learn to create GUI applications connected to databases.

Uploaded by

sathwick
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views10 pages

DBMS and GUI Lab

This document outlines a course on DBMS and GUI lab. It provides objectives, outcomes, topics, and a list of graded practical exercises related to designing databases, querying with SQL, and developing GUI applications. Students will learn database concepts, design, normalization, and how to query and manipulate data with SQL. They will also learn to create GUI applications connected to databases.

Uploaded by

sathwick
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Government of Karnataka

Department of Technical Education


Bengaluru

Course Title: DBMS and GUI lab


Course Code:
Scheme (L:T:P) : 0:2:4 Total Contact Hours: 78
15CS36P
Type of Course: Tutorial and Credit :03 Core/ Elective:
Practical’s Core
CIE- 25 Marks SEE- 50 Marks

Prerequisites

Knowledge of basics DBMS theoretical concepts

Course Objectives

1. Provide strong formal foundation in database concepts.


2. Understand relational data model and systematic database design approach including
conceptual design and logical design using data modelling tool.
3. Learn the techniques of query processing using SQL engines.
4. Develop a database application using any of the GUI application products.

Course Outcome

On successful completion of the course, the students will be able to attain CO:
Experiment CL Linked Teaching
Course Outcome PO Hrs
linked
Explain the underlying concepts of 1,2,3
CO1 database technologies. Design and 03
U, A 1 to 10
implement a database schema for a
given problem-domain.
CO2 1,2,3 1 to 10 03
Apply Normalization to a database. U, A
Illustrate and query a database using 1 to 17 1 to 10
CO3
SQL DML/DDL commands To motivate
the students to relate all these to one or A 48
more commercial product environments
as they relate to the developer tasks
CO4
Design, create, build, and debug 18 1 to 10
Gambas /Visual Basic Database A 24
applications.
Total sessions 78

Legends: R = Remember U= Understand; A= Apply and above levels (Bloom’s revised


taxonomy)

Directorate Of Technical Education Karnataka State CS&E 15CS36P


Course-PO Attainment Matrix

Course Programme Outcomes


1 2 3 4 5 6 7 8 9 10
DBMS and GUI lab 3 3 3 3 3 3 3 3 3 3
Level 3- Highly Addressed, Level 2-Moderately Addressed, Level 1-Low Addressed.
Method is to relate the level of PO with the number of hours devoted to the COs which address the given PO.
If >40% of classroom sessions addressing a particular PO, it is considered that PO is addressed at Level 3
If 25 to 40% of classroom sessions addressing a particular PO, it is considered that PO is addressed at Level 2
If 5 to 25% of classroom sessions addressing a particular PO, it is considered that PO is addressed at Level 1
If < 5% of classroom sessions addressing a particular PO, it is considered that PO is considered not-addressed.

List of Graded Practical Exercises

1. Using any open source data modelling tool (MySQL/Rational Rose/ERwin), design and
develop a ER diagram for the following Library database. Specify relevant Referential
constraints.

BOOK_AUTHORS
BOOK_ID AUTHOR_NAME

PUBLISHER
NAME ADDRESS PHONE

BOOK_COPIES
BOOK_ID BRANCH_ID NO_COPIES

BOOK_LOANS
BOOK_ID BRANCH_ID CARD_NO DATE_HIRED DUE_DATE

LIBRARY_BRANCH
BRANCH_ID BRANCH_NAME ADDRESS

BORROWER
CARD_NO NAME ADDRESS PHONE

2. Consider a GRADE_BOOK database in which instructors within an academic department


record point earned by individual students in theory classes. The data requirements are
summarised as follows:
∑ Each student is identified by a unique identifier, first and last name and an email address.
∑ Each instructor teaches certain courses each term. Each course is identified by a course
number, a section number and the term in it is taught. For each course he or she teaches,
the instructor specifies the minimum number of points required in order to earn letter
grades, A, B, C, D and F. For Ex. 90 points for an A, 80 points for a B, 70 points for a C
and so forth.
∑ Students are enrolled in each course taught by the instructor.
∑ Each course has a number of grading components (such as mid-term exam, final exam,
project and so forth). Each grading component has a maximum number of points (100 or

Directorate Of Technical Education Karnataka State CS&E 15CS36P


50) and a weight (20% or 10%). The weight of all the grading components of a course is
100.
∑ Finally, the instructor records the points earned by each student in each of the grading
components in each course. For Ex. The student 1234 earns 84 points for a mid-term
exam, grading component of the section 2 course CS 2310 in the fall term of 2009. The
mid-term exam grading component may have been defined to have a maximum of 100
points and a weight of 20% of the course grade.

3. Create the following tables for a COMPANY database

EMPLOYEE
Fname Minit Lname Ssn Bdate Address Sex Salary Super_ssn Dno

DEPARTMENT
Dname Dnumber Mgr_ssn Mgr_start_date

DEPT_LOCATIONS
Dnumber Dlocation

PROJECT
Pname Pnumber Plocation Dnum

WORKS_ON
Essn Pno Hours

DEPENDENT
Essn Dependent_name Sex Bdate Relationship

4 Illustrate the use of constraints


NOT NULL
PRIMARY KEY
UNIQUE
CHECK
DEFAULT
REFERENCES
5 DATA MANIPULATION : INSERTING VALUES INTO A TABLE
6 Illustrate the use of SELECT statement
7 Conditional retrieval - WHERE clause
8 Query sorted - ORDER BY clause
9 Grouping the result of query - GROUP BY clause and HAVING clause
10 Aggregate functions in SQL (Count, Sum, Max, Min, Avg)
11 SQL operators(And, Or, Like, Between, In)
12 Query multiple tables using JOIN operation.
13 Write nested and complex queries using multiple tables.
14 Perform UPDATE, ALTER, DELETE, DROP operations on tables
15 Illustrate the use of CREATE VIEW command and manipulating
16 Use COMMIT and ROLL BACK commands
17 Use SAVEPOINT commands
18. GUI

Directorate Of Technical Education Karnataka State CS&E 15CS36P


1. To study about various Gambas/Visual Basic (front end) or any other front
end tool
2. Design a form to use various tools like label, text, combo box, list boxes,
check box, option box, horizontal and vertical scroll bars, etc. Illustrate the
above with an example such as survey form, registration form for an event or
another other example.
3. Design a menu driven form to process student’s results or a shopping list or
any other example.
4. Generate a report for student’s results or employee details or shopping list or
any other example.
5. Based on any database specified in Question No. 1, 2 or 3. The application
must be menu driven having suitable active controls with database
connectivity. Generate different reports as per user requirements.

References

1. Fundamentals of Database system 5th Edition, Ramez Elmasri,Shamkan B. Navthe,


Pearson Education
2. Visual Basic 6 How to program by Deitel & Associates
3. http://www.tutorialspoint.com/dbms/sql_overview.htm
4. http://www.sql-tutorial.net/
5. http://www.visualbasicbooks.com/vb6introtutorial.html
6. http://gambas.sourceforge.net/
7. http://gambasdoc.org/help

Suggested list of student activities


Note: The following activities or similar activities for assessing CIE (IA) for 5 marks (Any one)
Student activity like mini-project, surveys, quizzes, etc. should be done in group of 3-5 students.
1. Each group should do any one of the following type activity or any other similar activity
related to the course and before conduction, get it approved from concerned course co-
ordinator and programme co-ordinator.
2. Each group should conduct different activity and no repeating should occur.
∑ Build DBMS application for processing students details such as personal details,
results, attendance etc. Use minimum 3-4 tables
∑ Build DBMS application for maintain a mini library of CD’s. Use minimum 3-4
tables
∑ Using any ER diagram modelling tool demonstrate modelling of any database
containing 3-4 tables.

Course Delivery
The course will be delivered through Demonstration and Practices

Directorate Of Technical Education Karnataka State CS&E 15CS36P


Course Assessment and Evaluation Scheme

When/Where
To (Frequency Max Evidence Course
Method What
whom in the Marks collected outcomes
course)
IA Students Two tests 10 Blue books 1,2,3,4
(average of
two tests)
CIE
Record 10 Record
Direct Assessment

(Continuous
Internal
Student 05 Report 1,2,3,4
Evaluation)
activity
Total 25

SEE End End of the 50 Answer scripts 1,2,3,4


(Semester Exam course at BTE
End
Examination)
Student Feedback on Students Middle of Feedback 1,2,3(half
course the course forms session)
Delivery of
Indirect Assessment

course
End of Course End of the Questionnaires 1,2,3, 4
Survey course Effectiveness
of Delivery
of
instructions
&
Assessment
Methods
*CIE – Continuous Internal Evaluation *SEE – Semester End Examination
Note:
1. I.A. test shall be conducted as per SEE scheme of valuation. However obtained marks
shall be reduced to 10 marks. Average marks of two tests shall be rounded off to the next
higher digit.
2. Rubrics to be devised appropriately by the concerned faculty to assess Student activities.

Questions for CIE and SEE will be designed to evaluate the various educational components
(Bloom’s taxonomy) such as:
Sl. No Bloom’s Category %
1 Remembrance 10
2 Understanding 20
3 Application 70

Note to IA verifier: The following documents to be verified by CIE verifier at the end of
semester
1. Blue books (10 marks)
2. Record (10 marks)

Directorate Of Technical Education Karnataka State CS&E 15CS36P


3. Student suggested activities report for 5 marks
4. Student feedback on course regarding Effectiveness of Delivery of instructions &
Assessment Methods.
Format for Student Activity Assessment

DIMENSIO Unsatisfactor Developin Satisfactor Good Exemplary Score


N y g y 4 5
1 2 3
Collection of Does not Collects Collects Collects Collects a 3
data collect any very some basic relevant great deal
information limited information information of
relating to the information ; refer to ; concerned information
topic ; some the topic to the topic ; all refer to
relate to the the topic
topic
Fulfill team’s Does not Performs Performs Performs
Performs 4
roles & perform any very little nearly all all duties
all duties of
duties duties duties duties assigned
assigned to team roles
the team role with
presentatio
n
Shares work Always relies Rarely Usually Does the Always 3
equally on others to does the does the assigned does the
do the work assigned assigned job without assigned
work; often work; having to work
needs rarely be without
reminding needs reminded. having to
reminding be
reminded
and on
given time
frame
Listen to Is always Usually Listens, but Listens and Listens and 3
other Team talking; never does most sometimes contributes contributes
mates allows anyone of the talk too to the precisely to
else to speak talking; much relevant the relevant
rarely topic topic and
allows exhibit
others to leadership
speak qualities
TOTAL 13/4=3.2=
4
*All student activities should be done in a group of 4-5 students with a team leader.

Directorate Of Technical Education Karnataka State CS&E 15CS36P


Scheme of Valuation for End Examination

1 Creating and inserting records for minimum two tables. 10


Use minimum 2 constraints
2 Executing minimum 3 queries 15

3 Build a GUI program for the table created with data 15


grid view and options such as Add, Delete, Modify etc.
4 Viva-Voce 10

Total 50

**Evaluation should be based on the screen output only. No hard copy required.
**Change of question is allowed only once. Marks of 05 should be deducted in the given
question.

Resource requirements for DBMS & GUI Lab


(For an Intake of 60 Students [3 Batches])

Sl. No. Equipment Quantity


1 PC systems (latest configurations with speakers) 20
2 Laser Printers 01
3 Networking (Structured) with CAT 6e / wireless 03
24 Port switches / Wireless Router
I/O Boxes for networking(as required)
4 Broad Band Connection 01
**Open Source Software should be encouraged

Directorate Of Technical Education Karnataka State CS&E 15CS36P


MODEL QUESTION BANK

1. a) Create table Employee and Dependent as per the following schema: Identify the Primary
and referential constraints on the table. Specify suitable constraint on the salary column such
that 12000 < Salary < 120000.
i) Employee Table

Fname Lname ssn Bdate Address Sex Salary Super Dno


ssn

ii) Dependent Table


Essn Dependent_name Sex Bdate

b) Insert records into the above tables.


c). Queries to be executed
∑ Add another column Relationship to dependent Table
∑ Retrieve all female dependents of the employees who have joined service after 31-01-
2010
∑ Retrieve the no. Of employees and total salary drawn by the employees belonging to
department no. 10.
d) Create a GUI to show any one of the table contents(include data grid view and perform
operations such as add, delete, modify etc)

2. a) Create table BOOK ,BOOK_AUTHORS and PUBLISHER with following Schema.


Identify the Primary and referential constraints on the tables. Specify default constraint on
gender column of BOOK _AUTHOR table.

i) BOOK
Book_id Title Publisher_name

ii) BOOK_AUTHOR
Book_id Author_name Gender
iii) PUBLISHER
Name Address Phone

b) Insert records into the above tables.


c) Queries to be executed
∑ Retrieve the book details of all the books authored by “Sharma”.
∑ Delete the record for the publisher by name “sapna”.
∑ For each publisher retrieve the total number of book titles published.
d) Create a GUI to show any one of the table contents(include data grid view and perform
operations such as add, delete, modify etc).

Directorate Of Technical Education Karnataka State CS&E 15CS36P


3. a) Create table EMPLOYEE,PROJECT and WORKS_ON as per the following schema:
Identify the Primary and referential constraints on the table.
i) Employee Table
Fname Lname Ssn Bdate Address Sex Salary Super Dno
ssn

ii) Project table


P_name Pno P_location
iii) Works_On
Essn Pno Hours

b) Insert records into the above tables.


c) Queries to be executed
∑ Retrieve employee name, address and salary with all employee names first
letter in capital.
∑ For each employee retrieve the total projects and total no. of hours he/she
works on.
∑ Illustrate the use of Save point, Rollback and Commit transaction commands.
d) Create a GUI to show any one of the table contents (include data grid view and perform
operations such as add, delete, modify etc).

4. a). Create table BOOK,BOOK_BORROWED and BOOK_BORROWER as per the following


schema: Identify the Primary and referential constraints on the table.
i) Book

Book_id Title Publisher_name

ii) Book_Borrowed
Book_id Card_No Date_out Due_Date

iii) Book_Borrower
Card_No Name Address Phone

b) Insert records into the above tables.


c) Queries to be executed
∑ Retrieve the names of people who have borrowed “Computer Network” book.
∑ Retrieve the number of days permitted to borrow “Computer Organization” by
“Cherry”.
∑ Illustrate the use of any four numeric functions.
d) Create a GUI to show any one of the table contents (include data grid view and perform
operations such as add, delete, modify etc).

5. a) Create table CUSTOMER , ACCOUNT, LOAN as per the following schema: Identify the
Primary and referential constraints on the table.
i) Customer

Directorate Of Technical Education Karnataka State CS&E 15CS36P


Account_no Name Address Phone
ii) Account

Account_no. Transaction_type Amount Balance


iv) Loan

Loan _no Account_no Amount Loan_type Interest_rate

b) Insert records into the above tables.


c) Queries to be executed
∑ Retrieve all customers who have availed the loan amount of more than 5 lakhs.
∑ Create a view with the following attributes: Customer name, bank balance and loan
amount.
∑ Illustrate the use of Grant and Revoke commands.
d) Create a GUI to show any one of the table contents (include data grid view and perform
operations such as add, delete, modify etc).

6. a) Create table ART_OBJECT, PAINTING and STATUE as per the following schema:
Identify the Primary and referential constraints on the table.
i) Art_object
Id_no Artist_ Name Year_ Created Title Art_ type Description
Art type can either Painting or Statue

ii) PAINTING
Paint_ type Base_ Material Style Price
Paint type can be oil or water colour or organic colour
Base material can be paper, canvas or wood
Style can be Modern or Abstract
iv) Statue
Material_type Height Weight Style Price
Material tyoe can be stone, wood, glass
Style can be Modern or Abstract
b) Insert records into the above tables.
c) Queries to be executed
∑ Retrieve the details of the costliest painting using nested queries.
∑ Retrieve the names of the artist who have worked on Abstract style
∑ Delete all the records pertaining to the artist by name “Sahithya”.

d) Create a GUI to show any one of the table contents (include data grid view and perform
operations such as add, delete, modify etc).

Directorate Of Technical Education Karnataka State CS&E 15CS36P

You might also like