0% found this document useful (0 votes)
30 views

1.lab Final (Cse 3106)

The document describes the schema for several database tables related to tasks, employees, priorities, and students. It includes tables for employees, tasks, priorities, task priorities, task assignments, students, and accounts. It also provides 3 experiments involving querying these tables: 1) Setting task priorities assigned to more than 5 developers, 2) Selecting unassigned/unsolved tasks, and 3) Finding average developer age and tasks per priority. It further describes additional tables for departments, students, and transactions and 2 experiments: 1) Finding departments and students with over 25k average transactions, and 2) Extracting student year from ID.

Uploaded by

Wakil Khan
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)
30 views

1.lab Final (Cse 3106)

The document describes the schema for several database tables related to tasks, employees, priorities, and students. It includes tables for employees, tasks, priorities, task priorities, task assignments, students, and accounts. It also provides 3 experiments involving querying these tables: 1) Setting task priorities assigned to more than 5 developers, 2) Selecting unassigned/unsolved tasks, and 3) Finding average developer age and tasks per priority. It further describes additional tables for departments, students, and transactions and 2 experiments: 1) Finding departments and students with over 25k average transactions, and 2) Extracting student year from ID.

Uploaded by

Wakil Khan
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/ 1

Department of Computer Science and Engineering

Course Code: CSE-3106


SET-I
Exp:01
Table:Employee
Employee_ID(PK) Employee_name Age Sex

Table:Task
Task _ID(PK) Task _name EstimatedHour ActualHour

Table:Priority
Priority_ID(PK) Priority_Name

Table:Task_Priority
Task_ID(PK) Priority_ID(PK)
Fk:Task_ID references Task(Task_ID),Priority_ID references Priority(Priority_ID)

Table:Task_Assignment
Task_ID(PK) Creator_ID(PK) Developer_ID(PK)
Fk:Task_ID references Task(Task_ID),Creator_ID references
Employee(Employee_ID),Developer_ID references Employee(Employee_ID)

1. Set the priorities of the tasks by priority3 which are assigned to more than five developers.Here
Priority3 is priority name.
2. Select the Task names which are neither assigned by any creator nor solved by any developer.
3. Find the average age of the developers and the numbers of task for each priority of a task.
Table:Student
Student_ID(PK) Student_Name

Table:Account
Student_ID(PK) Balance

Exp:02
Write a function that will take Student_ID as parameter and return the Student_Name and Balance from
the above table.
Exp:03
You are given the following tables.
Department(Dept_id, Dept_Name, Transaction_No, Trans_Amount)
Student(Dept_id, Student_id, Name, Mob_no, CGPA)
i. Find the Depatment Name,Student Name whose average Transaction Amount greater than
25000/=.
ii. Find the Student year from the table(Considering MBSTU Student ID formation)

You might also like