CS6: Assignment on Database

CS6: Assignment on Database 1

Answer All Questions

1(a) What is a flat file database? (01 mark)

(b)    Mention any two advantages of using electronic database system (02 marks)

(c)     State two characteristics of a good database design (02 marks)

2.(a). Explain the following field properties as used in database design. (04 marks)

(i).Caption

(ii).Input mask

(b). Give one requirement of a good primary key field in a database table. (01 Mark)

3. (b) A property owner uses a database to store data about houses he sells. The table shows part of the database.

Reference number Air conditioner Garden Number of Bedroom Price (million Shs)
L2132 Y N 3 170
L4323 N Y 2 130
L1232 N Y 3 158
L4321 N N 4 210
L5643 Y Y 4 335
L3423 N Y 5 400
L2342 Y Y 4 285
  • The records shown are to be sorted in ascending order of price. What will be the reference number of the first record in the database after it has been sorted? (01 mark)

(ii) Give the names of the fields that contain Boolean data type. (01 mark)

Identify the field type of the reference number field. (01 mark)

(iv) Give two validation checks that could be carried out on the reference number field. (01 mark)

(v)  Which field should be the primary key of the database table? (01 mark)

4.(a) (i) What a wild card is in database management system. (01 mark)

(ii) Importance of a wildcard in a query criterion (01 mark)

(iii)   Naming examples of frequently used wildcards. (01 mark)

(b) Give two advantages of using a primary key in a database. (02 marks)

5. Create a database for Jinja Bridal Car Hire Ltd saved as bridal and carry out the following tasks. (20 marks)

Employee_Name Sex Date_of_Birth Car_Type Employee_ID Remarks
Kalambe Daphine F 1980, 11 – 18 Premio JBCH-200 Good work
Sanjay Hussein M 1978, 02 – 27 Benz JBCH-010  
Kapalaga Michael M 1984, 10 – 30 Premio JBCH-001 Experienced
Nabukera Joan F 1991, 11 – 30 Premio JBCH-019 Time keeper
Sentongo Philip M 1962, 01 – 10 Wish JBCH-180  
Muwanguzi Vivian F 1973, 04 – 01 Premio JBCH-150 Co-opertive
Kato William M 1950, 06 – 02 Wish JBCH-090 Experienced
Walugembe Alex M 1992, 06 – 14 Benz JBCH-060 Time keeper
Okello Stephen M 1982, 01 – 31 Wish JBCH-065 Eratic

Instructions:

(a).   Design a table saved as drivers to hold the above data.

(b).  Using appropriate field, assign a primary key.

(c).  Design a form having a sky-blue background colour, footer of your name you will     use to populate the table. Save the form as Data Entry.

(d).   Design three queries that will return workers who:

(i). have no remarks against their records. Save the query as Not Appraised.

(ii).   drive Car_Type that is not a Wish. Save the query as Not Wish.

(iii). celebrate birth day in the month of January. Save the query as Born Jan.

(e). Create a report to return drivers who drive a premio Car_Type. Save the report as Premio.

(f) Create a report having all the records on one sheet. Save the report as All. The report should have the following details:

(i). A good red line boarder.

(ii). Count of the records it holds                                                                          

(iii). Group and sort your records in order of car_type

(iv). Add a title: MOTO VEHICLES INFORMATION REPORT size 24

(g) Add Header as Your Name and Your Gender as Footer on the report

(h) Add an image on your report to serve as a  logo

(h) Print your queries and report only.

6. Using any data base management system load file called 20xxxCoMpany. Mdb and use it to answer the following questions. Any changes made should be saved. (20 marks)

  • Open up table  called suplaya in design view and adjust the data type appropriately
  • Change the default primary key field to the most appropriate field
  • Change the date format in the table properties to medium date
  • The currency field should be formatted to indicate SHS as units
  • Create a tabular form that includes all the fields that can be used to add more information in the table. Save it as entry
  • If all suppliers offered a general discount of 0.2% use a form above to determine how much discount the company enjoyed from each supplier
  • Change the background color of your form to a brighter color
  • Insert a header on the page of the form
  • Create a query with only the field of SUPNAME and PRODUCAT to filter those who supplied meals, stationary or text books and save it as power
  • Create another query that will filter suppliers who supplied items during 1998 and after 2014. Save it as yearly
  • Create on other query with a field of supname and cost to display those suppliers whose items were not valued and names start with letter K. Save it as valueless
  • Create a general report with supplier name sorted in ascending order with a header of your name and index number. Save it as
  • Print the genrepo on a landscape page orientation.

 

KAKURU BENARD

Kakuru Benard is a distinguished specialist in Digital Learning and teaching. A consultant trainer and researcher in ICTs, computer science and geography, Kakuru has also published books with the Uganda National Curriculum Development Centre, undertaken Interactive and Adaptive Digital Content Creation with Yaaka Digital Network (www.yaaka.cc), digital content creation and optimization for online learning, and digital classrooms in order to help learners and teachers improve at all levels. Since 2015 Kakuru Benard has taught ICT, trained teachers, tutors and lecturers in ICT Integration, multimedia and digital communications and digital pedagogy, helping them to learn and teach better in organizations and schools including Equatorial College School, St Joseph of Nazareth High School, Yaaka Digital Network, as well as Multimedia and 21st Century Skills trainings with Makerere University Department of Journalism and Communication, Brac Uganda, Uganda Christian University, Ultimate Multimedia Consult, Uganda Martyrs University, UNICEF, US Mission and FAWE Uganda. Kakuru Benard is a graduate from Uganda Martyrs University.

Leave a Comment
Share
Published by
KAKURU BENARD

Recent Posts

QUESTION 4

4(a) what are your roles as citizen of Uganda?   (b) Each and every  individual in…

1 year ago

QUESTION 3

3(a) why do we political Eduction in the New Uganda curriculum?    (b) Explain the roles…

1 year ago

QUESTION 2

2(a) Describe the creation story in relation to the origin of man.    (b) Explain why…

1 year ago