0% found this document useful (0 votes)
21 views5 pages

DDMS QP

The document outlines a series of tasks related to database development, including designing a University database system and creating ER diagrams for various systems such as hospital management and employee management. It includes specific instructions for creating tables, implementing constraints, and executing SQL queries. Each task is accompanied by a grading rubric for evaluation.

Uploaded by

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

DDMS QP

The document outlines a series of tasks related to database development, including designing a University database system and creating ER diagrams for various systems such as hospital management and employee management. It includes specific instructions for creating tables, implementing constraints, and executing SQL queries. Each task is accompanied by a grading rubric for evaluation.

Uploaded by

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

1 Design a Database development life cycle for University database system and draw an ER

diagram for the system using any ERD tools with all the possible entities and relationships.

Aim/ Program Execution & Result Viva voce Record Total Mark in words
Algorithm (30) (20) (10) (10) (100)
(30)

Internal Examiner External Examiner

2 Construct the ER diagram for hospital management system and specifies entity relationship
like strong, weak entities, multi-values etc…using ERD tools.

Aim/ Program Execution & Result Viva voce Record Total Mark in words
Algorithm (30) (20) (10) (10) (100)
(30)

Internal Examiner External Examiner


3 Create a table called EMP with the following structure.
Name Type ---------- ----------------------
EMPNO NUMBER (6)
ENAME VARCHAR2 (20)
JOB VARCHAR2 (10)
DEPTNO NUMBER (3)
SAL NUMBER (7,2)
a. Allow NULL for all columns except ename and job.
b. Add constraints to check, while entering the empno value (i.e) empno > 100.
c. Define the field DEPTNO as unique.
d. Create a primary key constraint for the table (EMPNO).
e. Write queries to implement and practice constraints.

Aim/ Program Execution & Result Viva voce Record Total Mark in words
Algorithm (30) (20) (10) (10) (100)
(30)

Internal Examiner External Examiner

4 Create a table EMPLOYEE with following schema:


(Emp_no, E_name, E_address, E_ph_no, Dept_no, Dept_name,Job_id, Designation ,
Salary)
Write SQL queries for following:
a. Insert at least 5 rows in the table.
b. Display all the information of EMP table.
c. Display the record of each employee who works in department D10.
d. Delete table

Aim/ Program Execution & Result Viva voce Record Total Mark in words
Algorithm (30) (20) (10) (10) (100)
(30)

Internal Examiner External Examiner


5 Create the table with the following Structure and execute the queries as follows:
ROLL_NO NUMBER
NAME VARCHAR2(10)
CGPA FLOAT
Q1. Insert the data’s of 5 students
Q2. Add primary key constraints to already created table.
Q3. To define primary key constraints for multiple columns
Q4. Drop primary key constraints from the already created table

Aim/ Program Execution & Result Viva voce Record Total Mark in words
Algorithm (30) (20) (10) (10) (100)
(30)

Internal Examiner External Examiner

6 Perform the following:


A. Create database
B. Create employee tables (with constraints).
C.Create a view for each table
D. Perform Insert/delete/update operations.

Aim/ Program Execution & Result Viva voce Record Total Mark in words
Algorithm (30) (20) (10) (10) (100)
(30)

Internal Examiner External Examiner


7 Create a employee table and perform the following operations
A. Create a query to display first name and joining date of each employee in the order they
joined.
B. Display the employee records whose salary is above 25000.
C. Create a query to display the name of the employee whose salary is not in the range of
10000 and 50000.

Aim/ Program Execution & Result Viva voce Record Total Mark in words
Algorithm (30) (20) (10) (10) (100)
(30)

Internal Examiner External Examiner

8 Create a database as College and tables as student, teacher and management etc…
Perform all then DCL and TCL functions.

Aim/ Program Execution & Result Viva voce Record Total Mark in words
Algorithm (30) (20) (10) (10) (100)
(30)

Internal Examiner External Examiner

9 Consider the following relations for a transport management system application:


DRIVER (DRIVER_CODE, DNAME, DOB, GENDER)
CITY (CITY_CODE, CITY_NAME)
TRUCK (TRUCK_CODE, TRUCK_TYPE)
i. Include the constraint as mentioned above and the gender of driver is always 'male'.
ii. Develop a SQL query to list the details of each driver and the number of trips traveled.

Aim/ Program Execution & Result Viva voce Record Total Mark in words
Algorithm (30) (20) (10) (10) (100)
(30)
Internal Examiner External Examiner

You might also like