VTC-ITRW311.1 Resources/Hulpmiddels: Requirements for this paper/Benodighede vir hierdie vraestel: Answer Scripts/ Antwoordskrifte: Attendance Slips (Fill-in Paper)/ Presensiestrokies (Invulvraestel): Scrap Paper/ Rofwerkpapier Multi-choice cards (A5)/ Multikeusekaarte (A5) X Multi-choice cards (A4)/ Multikeusekaarte (A4) Graph Paper/ GrafiekPapier Calculators/ Sakrekenaars Laptop (Power not provided)/ Skootrekenaar (Krag word nie voorsien nie) Type of Assessment/ Tipe Assessering: Exam Opportunity:1 Duration/ Tydsduur: 3 Hrs 00 Min Paper Number/ Vraestel Nommer: 1 Maximum Marks/ Maksimum Punte: 100 Module Code/ Modulekode: ITRW311 Module Description/ Module Beskrywing: COMPUTER SCIENCE Date/ Datum: 2019/05/28 Time/ Tyd: 14:00 Qualification/ Kwalifikasie: BSc Information Technology Examiner(s)/ Eksaminator(e): Internal/Interne Moderator(s): External Moderator(s)/ Eksterne Moderator(s): Mr T Mogale-VTC; Dr. FL Lugayizi-MC; Submission of answer scripts/Inhandiging van antwoordskrifte: ORDINARY Section B (Relational Data Modelling) - [20 Marks] Question 2 2.1 Using examples define and identify the three types of relationships that exist and are useful in data Modelling? [5 Marks] 2.2 Give and define the five types of keys used in a Relational Database Model? [5 Marks] Question 3 2.3 Identify and describe the components of the table shown in Figure below using correct terminology. Use your knowledge of naming conventions to identify the table’s probable foreign key(s). FIGURE1: EMPLOYEE TABLE [10 Marks] ITRW 311: Paper No./Vraestel Nr. 1 | Exam 1st opp/Eksamen 1e gel | //Extended full-time/Verleng voltyds/ 4/9 Section C (Advanced Entity Relationship Modelling) - [20 Marks] Question 3 3.1 Using relevant examples and applications kindly define what is meant by Generalization Hierarchies. Also give a scenario where Generalization Hierarchies play an important part. [5 Marks] 3.2 Using crow foot notation draw and define relationships for the following entities: A) Student – University. B) City – House. C) Professor – Department. D) Customer – Invoice E) Employee – Skill [5 Marks] Question 4 4.1 Using an illustration draw and give an example of a simple relational database. Define two entities named CUSTOMER and VENDOR. The two entities have to be linked via primary key and foreign key and this link must be visible in the illustration. The entity CUSTOMER contains PROD_CODE, PROD_DESCRIPTION, PROD_PRICE, PROD_ON_HAND, and VEND_CODE as attributes. While the entity VENDOR contains VEND_CODE, VEND_CONTACT, VEND_AREACODE and VEND_PHONE as attributes. [5 Marks] 4.2 Using the specialization Hierarchy example depicted in Figure 2 in the next page identify and explain the following concepts (Use drawings where necessary): I) Supertype ii) Subtype Discriminators iii) All Subtypes iV) Partial Contraints V) Unique Attributes [5 Marks] ITRW 311: Paper No./Vraestel Nr. 1 | Exam 1st opp/Eksamen 1e gel | //Extended full-time/Verleng voltyds/ 5/9 FIGURE 2: SPECIALIZATION HIERACHY ITRW 311: Paper No./Vraestel Nr. 1 | Exam 1st opp/Eksamen 1e gel | //Extended full-time/Verleng voltyds/ 6/9 Section D (Normalization and Database Tables) - [20 Marks] Question 5 5.1 Using relevant examples and illustrations explain the process of Normalization and its different forms. [3 Marks] 5.2 When is a table in 3rd Normal Form also known as 3NF? [2 Marks] 5.3 Using the given diagram below identify and explain the indicated dependencies? [5 Marks] Question 6 6.1 Using the diagram given below create a database whose tables are at least in 2NF, showing the dependency diagrams for each table. [5 Marks] 6.2 Using the same diagram given above create a database whose tables are in 3NF, showing the dependency diagrams for each table. [5 Marks] ITRW 311: Paper No./Vraestel Nr. 1 | Exam 1st opp/Eksamen 1e gel | //Extended full-time/Verleng voltyds/ 7/9 Section E (Structural Query Language Applications) - [20 Marks] Question 7 Refer to Figure 1 below and answer the questions to follow: 7.1 Using the ERD model shown in Figure 1 write the appropriate SQL code to create the table structures for the entities shown in Figure 1. The structures should contain the attributes specified in the ERD. Use data types that are appropriate for the data that will need to be stored in each attribute. Remember to enforce primary key and foreign key constraints where relevant. [10 Marks] ITRW 311: Paper No./Vraestel Nr. 1 | Exam 1st opp/Eksamen 1e gel | //Extended full-time/Verleng voltyds/ 8/9 Question 8 8.1 Table 1 provides a small portion of the data that will be kept in the database. The data needs to be inserted into the database for testing purposes. Write the INSERT commands necessary to insert the Last 5 rows from Table 1 into the MEMBERSHIP table that was created in Question 7.1. [10 Marks] oooooOooooo TOTAL/TOTAAL: 100 File reference: 8.1.7.2.2 ITRW 311: Paper No./Vraestel Nr. 1 | Exam 1st opp/Eksamen 1e gel | //Extended full-time/Verleng voltyds/ 9/9