- Information
- AI Chat
Was this document helpful?
3714 ST1 2021 QQ - Test
Course: Introduction to Databases and Databases Management Systems:Part 1 (CSIQ2634)
37 Documents
Students shared 37 documents in this course
University: University of the Free State
Was this document helpful?
1 | P a g e
UNIVERSITY OF THE FREE STATE
CSIQ3714
DEPARTMENT OF COMPUTER SCIENCE AND INFORMATICS
Semester Test 1 2021
ASSESSORS:
INTERNAL MODERATOR:
1. Mr G.J. Dollman
2. Prof T.R. Stott
Prof P. Kogeda
EXTERNAL MODERATOR:
MARKS: 60
TIME: 120 minutes
Instructions
Answer all the questions. Number your answers clearly.
You must use UML notation. No Crow’s foot notation allowed.
You must use T-SQL (as used in SQL Server) for all SQL queries.
Description
You are writing a small application for the neighbourhood association to keep track of crime incidents in the
area. You have designed the ERD as shown in Appendix A.
Question 1 {Total:5}
Write a SQL stored procedure to insert a new IncidentCategory. The new category name must not match any
existing categories.
(5)
Question 2 {Total: 7}
Write an SQL query to determine how many incidents have occurred based on the incident severities. Ensure
that you can specify a start and end date for the report. Ensure that your columns are named appropriately.
(7)