0% found this document useful (0 votes)
49 views6 pages

2017 Nov

Theans

Uploaded by

nicoleakoya547
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
49 views6 pages

2017 Nov

Theans

Uploaded by

nicoleakoya547
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
easytvet.com 292/206 DATABASE MANAGEMENT SYSTEM November 2017 ‘Time: 3 hours THE KENYA NATIONAL EXAMINATIONS COUNCIL DIPLOMA IN INFORMATION TECHNOLOGY MODULE H DATABASE MANAGEMENT SYSTEM 3 hours INSTRUCTIONS TO CANDIDATES: Answer any FIVE of the following EIGHT questions in the answer booklet provided. All questions carry equal marks. Candidates to answer the questions in English. ‘This paper consists of 6 printed pages. Candidates should check the question paper to ascertain that all the pages are printed as indicated and that no questions are missing. © 2017 The Kenya National Examinations Council, ‘Turn over (b) © 2920/206 November 2017 easytvet.com Explain each of the following terms as used in databases. (4 marks) () Data Definition Language. (ii) Database Catalogue, Table 1 is an extract from a database. Use it to answer the questions that follow. jationalD [FarmerName [Age nus jF00801 [Agnes ps 20000 FFo0679 [Catherine las 75000 [F00ss8 [Gladys Iss 35000 john Fo0725 Alex a 25000 Table 1: Farmer Write an algebraic expression to: (i) display the NationallD, FarmerName for all farmers who eam a bonus of less than 25,000; G marks) (ii) rename the table Farmer to FarmerDetail, the columns NationallD to ID arid Farmername to Frame; G marks) t (iii) display the average bonus eamed by the farmers. Hs oy fe marks) ys sy Explain ewo circumstances that may prompt an organisa to ingplementa centralised" 3" database. >in marks) © % Distinguish between one to one and one fo many cardinality as used in databases. Ore can sueys 0€ ore GAN agrees many (4 marks) State the database users who perform each of the following tasks: (2 marks) (Interacts with database systems without writing programs ; tt (i) Interacts with database systems through previously created programs. Study the following narrative and use it to answer the questions that follow A car insurance company has customers. The customer can be identified by, the idemtification number, name and location, The customer can own one or more cars and can buy one or more Insurance premiums. Each car has been associated with one or more accidents. A car can be identified by the registration number, model and capacity. we Represent the information in an BR diagram. E x = me Explain two limitations of the file-based database approach. \ Ae COS vy 5 oe ; Gs oe neg ’ easytvet.com @—G)__ Distinguish between commit and roitback statements as used iv SQL. (4 marks) Gi) Explain the use of each of the following SQL statements: (4 marks) () Drop table Users Restrict: (II) Drop table Users Cascade. (2) Explain cach of the following terms as used in distributed database systems: (4 macks) - (i) partitioned tables; (ii) replicated tables... (6) With the aid of an example, distinguish between the terms relation and relation schema as used in databases. (4 marks} (©) John, a database administrator has been experiencing challenges manipulating data stored in a database, Explain three ways in which data normalization can resolve some of the challenges. — fists chasis - (6 marks) moon ysis (d)— @)—_ Outline the funefion’ kth tea product as used in algebra expression ued te pape O cy imesh marks) , (iy Wate the equvatet algebraic expression foreach ofthe following tuple calculus ex} {4 marks) © Yuen l= da)t ay {t|tEra_B]=17} (a Define the term file server as used in a client server database. ) marks) i aan) ine fi s er > marks) BEC Phe NG eV eBS All ALG BAGS (AGED ore tet (b) Describe two cobionents of 9 database. Sts | (4 marks) (c) Table 2 is an Employee table represented in INF, Use it to answer the questions that follow. EmployeeID | Contract | Hours | Employee Company | Company No Name » Location Gees |Scio2s [72 | P. White sclis Nairobi GTA3I5A | $C1025__ [48 __ | R. Press SCUS “| Nairobi 3231138 | SC1026_|24__| P. Smith $C23 ‘Nairobi @i6ss1B [SCi026—] 24 [P, White $C23 Nairobi ‘Table 2: Employee . Represent the table in its 3NF. — & marks) (a) ‘Using an example in each case, explain the following operators as used in relational algebra; (6 masks) @)umlon, = Uk Ku es yoR ES (i) intersection. 9 os 2920/206 3 ‘Turn over November 2017 easytvet.com (iti) difference. 57 (@)_ Distinguish between the physical and logical stages of the database life eyele. (4 marks) (b) _Bxplain two functions of the Database Administrator in database environment. Se mance cceryoiity oF It (4-marks) Se Shrning og clerks (©) _Explain the nse of Grant Select on projects to Userl:SQL statement when applic in databases ate wasn, (marks) one eotema oe puget te (i) Table 3 is an extract 6a Oslablbe. Use it to answer the questions that follow. | [StudentID | CourseID | StudentName | Marks ! 190200 [C236 __| Catherine 70 190201 | C236 [Agnes 80 100302 C242__| Stephen 90 100322 | C240. Alexis 80, 100328 | C240 ___| John 86 100352 | C240 Jemimah 9 100201 [C241 [Agnes 30 Table 3: Students Write SQL statements to perform each of the following: (1) display StudentiD, StudentName for all students whose CourselD is ‘ C240; (2 marks (1) determine the total marks for the student Named Agnes and store the results in a field named TotalMarks; (2 matks) (IB) display the lowest mark seored for CourselD is C236. 2 marks) (@) Describe each of the following types of fictional dependency: (4 marks) ti) fully functional; (ii) tansitive 5/ —(@)__Oulline twa concurrency controls applied in database management systems. (2 marks) ° (b) State two differences between object oriented and relational database models. NO. (4.marks) (©) @__Define the term SQL injection as used in databases, (Qmarks) i) Table 4is an extract from a database. Use it to answer the questions that follow. BookID | BookName BookCategory | Status B00501_| Alice in wonderland _| Fiction IN 804003 _| History of the world | General IN 804006 | Our Country General our 105002 | A walk in the park _| Fiction our 402001 School Rules: Reference IN, Table 4: Book / 2920/206 4 . November 2017 2920/206 November 2017 easytvet.com Write an SQL statement that would perform each of the following: (display all records from the table with records having status IN and arrange them based on the field name BookCategory in descending order, _. Gmarks) (1) remove all records with BookID labelled B0200 1 from the table: (2 marks) (111) display fields BookID, BookName for the books with BookID starting with BO4 or BookCategory fiction _G marks) Explain ¢wo ways in which organisations can cope with challenges that arise from database emerging technologies. ‘(Gamarks) Define each of the following terms as used in databases. (4 marks) (i) authorization; - geting Ces se (ii) authentication. ~ Yeniggng Explain two circumstances that would prompt an organisation 10 use a special purpose database. “°PECHE purpase we ene “ “4 parks) = Eyicre re ee eos pares) Distinguish between a composite Key oe ‘@ compotind key as used in databases. ve (4narks) Table 5 shows the structure of a table named Car. Use it to answer the questions that follow: premen ts datubs® ” Field Data Type_| Fs = ime Carll) Integer Physical > Sou clauses ty create Model ‘VarChar(20) he td CON anon ‘YearofManufacture | Date Loqical- results In senor I { Status. Integer tema = ERdagram or clas diagram Table 5: Car 1S the basis 4 Haus relunen Schemas’ Write an SQL statement that would perform each of the following: Gi) create the table Car with the relevant fields; (3 marks) Gi) make CarID the primary Key; (2 marks) (iii) add fields named Make and Price that stote 30 characters and numbers respectively. (G marks) Define the term database security as used in databases. (2 marks) Explain two ways in which the role of a database designer complements that of a database developer. (4 marks) 5 ‘Turn over easytvet.com (c) ‘Table 6 and 7 are extracts from a database. Use them to answer the questions that follow: GradeID | GradeName 002 Tutor 003 ‘Assistant Lecturer 004 Lecturer 005 Professor Table 6: Grade . LecturerNo | LecturerName | GradelD | Salary | Age | Yearimployed . 1345675 | Eunice (003 30000 [45 [1982 . 1347890 [ Agnes 003 45000 | 60_| 1985 1345679 | Alex ‘02 36000 [55__| 1989 1.456782 | Ted 008 25000 [22 [1996 1739073 | Felix 012 15000 [35 [1994 1397032 | Glad 015 $0000 1998 Table 7: Lecturer c aw (State an appropriate data type for the field named GradeName.-\® (1 mark) (ii) Write SQL statements to perform each of the following: () display the LecturerNo, LecturerName and Salary of all the lecturers, with GradeName “Assistant Lecturer”. (3 marks) 2 (1) display the LectureNo, GradelD and Salary for all Lecturers above age 50 and YearEmployed is between 1980 and 1992. (3 marks) (IIT) display all details of the lecturers whose age is not captured in the table Lecturer. (@ marks) (d)__Jane intends to commence the requirements gathering phase for the development of a database management system in her organisation. Outline two reasons why she should consider each of the following during the phase: onal eet (Reviewing of existing organisational documentation; — SS eds marks) (ii) Understanding the current operating environment. (2 marks) Jo THIS IS THE LAST PRINTED PAGE. 2920/206 6 November 2017

You might also like