The IT221 midterm practical assessment consists of three sections: Database Design, SQL Queries, and Stored Procedures and Triggers, totaling 100 marks. Students are required to create an ER diagram, write SQL queries of varying complexity, and develop a stored procedure and trigger. Submission must include the ER diagram, SQL queries, and formatted scripts, following specific guidelines.
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 ratings0% found this document useful (0 votes)
14 views1 page
MIDTERM Practical Assessment 1
The IT221 midterm practical assessment consists of three sections: Database Design, SQL Queries, and Stored Procedures and Triggers, totaling 100 marks. Students are required to create an ER diagram, write SQL queries of varying complexity, and develop a stored procedure and trigger. Submission must include the ER diagram, SQL queries, and formatted scripts, following specific guidelines.
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/ 1
IT221 INFORMATION MANAGEMENT
MIDTERM PRACTICAL ASSESSMENT
Total Marks: 100
Section A: Database Design (20 Marks)
1. Entity-Relationship (ER) Diagram (10 Marks)
o Design an ER diagram for a university database that includes entities such as Students, Courses, Instructors, and Departments. o Define primary keys, relationships, and cardinalities. 2. Database Schema (10 Marks) o Use SQL CREATE TABLE statements with appropriate data types and constraints based on the entities above.
Section B: SQL Queries (40 Marks)
Note: Courses refers to Subject
Basic Queries (10 Marks)
o Create SQL queries for the following:
Retrieve all student names and their enrolled courses. List all instructors in the Information Technology department. 2. Intermediate Queries (15 Marks) o Write SQL queries to: Find students who are enrolled in more than three courses. Calculate the total revenue generated from course enrollments. Retrieve all orders placed in the last 30 days. 3. Advanced Queries (15 Marks) o Write SQL queries to: Find the top 3 highest-paid instructors. Retrieve a list of courses along with the number of students enrolled in each. Display customer details who have placed the highest number of orders.
Section C: Stored Procedures and Triggers (30 Marks)
1. Stored Procedure (15 Marks)
o Write a stored procedure that accepts a student ID and returns their enrolled courses. o Demonstrate the execution of the procedure. 2. Trigger (15 Marks) o Create a trigger that automatically updates the stock quantity of a product when a new order is placed. o Test the trigger with sample data.
Submission Guidelines
• Submit a document containing your ER diagram and SQL queries.
• Include screenshots of executed queries and results. • Ensure that your SQL scripts are properly formatted and commented. • Follow the Section_LastName_Firstname file name format.