Beruflich Dokumente
Kultur Dokumente
Manu.Year
Mileage
Model Offence_name
Fine Offence
Vehicle
Make
Chassis_No Offence
Vehicle_No
License_No Uses
Fine
FirstName s
Surname Offender
Offence_No
PO_Address
Is
Officer_ID
Vehicle
Vehicle_No Vehicle_No
Arrest
License_No
Date
Shift Area Time
Gender Fine
s
Position
Officer
Surname
FullName Officer_ID
TRANSACTION REQUIREMENTS
A. DATA ENTRY
B.
a) DETAILS OF AN OFFICER
b) DETAILS OF OFFENCE
c) DETAILS OF OFFENDER
C. DATA UPDATE
UPDATE ARREST
SET
OFFENSE_NO=15001,
OFFICER_NO=65100,
VEHICLE_NO=120010,
LICENSE_NO=1320201900,
DATE= 10/008/2020,
TIME=10:00,
AREA=’Mvutjini’
WHERE
SET
CHASSIS-NO = 23444,
MAKE= Toyota,
MODEL= Fortuner,
TYPE OF VEHICLE=bakkie,
YEAR= 2018,
MILEAGE= 12000KM;
WHERE
CHASSIS-NO=23444;
B. FORMS
Officer Form
Officer ID: ADD
First Name:
Surname:
UPDATE
Position:
Gender: DELETE
Shift:
Offender Form
Licence No.
First Name:
Surname:
Postal Address:
Vehicle:
Vehicle No:
Offence Form
Offence No:
Offence Name:
Fine:
b) SQL statement to change name of the vehicle ‘VW CAMPER’ to ‘VW LUXURY CAMPER’
UPDATE Vehicle
FROM Rentals
d) SQL statement to display customers whose name is Mandy Jackson and address contains Treetop
WHERE
UPDATE Rentals
Rule 1- Be in 1NF
Divide our 1NF table into two tables viz. Table 1 and Table2. Table 1 contains member information.
Table 2 contains information on movies rented.
We have introduced a new column called Membership id which is the primary key for table 1. Records
can be uniquely identified in Table 1 using membership id
Rule 1- Be in 2NF
Divide our tables and create a new table which stores Salutations.
In Table 3 Salutation ID is primary key, and in Table 1 Salutation ID is foreign to primary key in Table 3