SlideShare une entreprise Scribd logo
1  sur  43
Télécharger pour lire hors ligne
Learning Module: Information Systems


1.     What is it?


       This is a learning module for a specific Learning Outcome as stipulated in
       the HSP that is:
       €   6.3       Database Development




2.     Who is it for?


       This module is for students who are taking the ICT subject as their elective
       and for those who are interested in ICT.




3.     What can be achieved?


       Upon completion of this module, you should be able to:
       €   describe the phases of system development.
       €   follow the correct steps in developing a database project.




4.     Is previous knowledge necessary?


       Yes. Before using this module, you should have learnt about features in
       database such as primary and foreign keys and the importance of
       relationship in database. You also should know about database
       objects/tools which include table, form, query, and report.




     www.ppk.kpm.my                                                         < 1 >
Learning Module: Information Systems


TOPIC :         6.3      DATABASE DEVELOPMENT

SUBTOPIC : 6.3.2 Develop A Database Project


LEARNING OUTCOMES
You should be able to:
6.3.2.1   identify a project.
6.3.2.2   identify the project requirements.
6.3.2.3   classify and design project requirements into two tables.
6.3.2.4   design database tables.
6.3.2.5   create a database.
6.3.2.6   create two tables that include the primary key in each table.
6.3.2.7   build a relationship between the two tables.
6.3.2.8   enter data into the tables.
6.3.2.9   create a form that is related to the tables.
6.3.2.10 create a query to retrieve required information with one or more
         conditions.
6.3.2.11 generate a report.
6.3.2.12 gather all the documents from the above phases.


DURATION :      18 periods




   www.ppk.kpm.my                                                           < 2 >
Learning Module: Information Systems


REFERENCES


A. Books
   1.    Capron H.L, J.A. Johnson (2005) Computers: Tools For An Information
         Age. Complete. Eighth Edition.
   2.    Shelly G.B, Cashman T.J, Vermaat M.E, Walker T.J. (2006)
         Discovering Computers 2007 : A Gateway to Information, Course
         Technology.
   3.    Bryan Pfaffenberger, Bill Daley (2003) Computers In Your Future,
         Prentice Hall.


B. Requirements
   1.    Microsoft Access 2000/2003


C. Websites Addresses
   1.    http://www.fgcu.edu/support/office2000/access/index.html
   2.    http://www.bcschools.net/staff/AccessHelp.htm
   3.    http://office.microsoft.com/en-us/FX010857911033.aspx
   4.    http://en.wikipedia.org/wiki/Microsoft_Access
   5.    http://en.wikipedia.org/wiki/Relational_database
   6.    http://www.functionx.com/access


D. Other sources
   1.    Windows Help and Support Center.




   www.ppk.kpm.my                                                    < 3 >
Learning Module: Information Systems


SUBTOPIC: 6.3.2 Develop A Database Project


A. Analysis Phase

LEARNING OUTCOMES
You should be able to:
        6.3.2.1      identify a project.
        6.3.2.2      identify the project requirements.
        6.3.2.3      classify and design project requirements into two tables.



DURATION:         4 periods


INSTRUCTIONS:
   1.     Read the situation below.
   2.     Understand the steps taken to identify the project and data.
   3.     Look on how data is classified and how a database is designed.


SITUATION A:

   You want to create a database of your friends’ telephone numbers.
   Majority of your friends have more than one telephone numbers. The
   data that you will store in your database are FriendID, Name, Address,
   Phone Numbers and Date of Birth.




STEP 1: Identifying project title.


Based on the above situation, the most suitable title for this project is
PERSONAL PHONEBOOK.
Reason : The telephone numbers belong to your personal friends.




   www.ppk.kpm.my                                                           < 4 >
Learning Module: Information Systems


STEP 2: Identifying project requirements.


The data from the above situation are:


      No.                        Data

      1     FriendID

      2     Name

      3     Address

      4     Phone Numbers

      5     Date of Birth


STEP 3: Classifying project requirements.


Consider the following issues:
a. Many of your friends have more than one telephone numbers.
b. Existing telephone numbers of your friends may change.
c. Your friends may also add or cancel their telephone numbers.




   www.ppk.kpm.my                                                      < 5 >
Learning Module: Information Systems


       Consider the following information in Table 1.


                                       Table 1 : Friends’ Information

                                                                                                     Field names



FriendID            Name                        Address                 Phone Numbers     Date of Birth

                                                                        03-49872345,
                                  123, Taman Laksamana, Lorong
A001       Asyraf Ibrahim                                               012-3127849,      05-10-1990
                                  Kuching 3/C, Kuala Lumpur
                                                                         013-2356765

                                  88, Taman Salak Tinggi, Sepang,       03-49650923,
A002       Amnah Razak                                                                    23-04-1990
                                  Selangor.                              013-2793421

                                  119, Lorong 6/9, Taman Desa Indah,     04-4123123,
A003       Asyraf Ibrahim                                                               19-11-1990
                                  Sg. Petani, Kedah.                     012-4223123                        Record
                                                                        03-23145559,
                                  Lot 2189, Puchong Perdana,            012-2678912,
           Chan Teng Hock                                                                 16-07-1990
                                  Selangor.                             013-2629087,
C001
                                                                         017-2435699

D001                                                                     03-4651298,
           Dasimah Mohamad        231, Taman Megah, Kuala Lumpur.                         29-12-1990
                                                                         013-7891241


D002       Dasimah Mohamad        Lot 131, Kg. Jawa, Klang, Selangor.    012-2567342      09-01-1990          Data

                                  230 Jalan SS1/4 Subang Jaya,          03-41221222,
J001       Joshua Anderson                                                                04-08-1990
                                  Selangor.                              012-3248970


                                  125, Lorong 3/12, Taman Sinar          05-6543217,
K001       Ku Shamsinar Ku Saad
                                  Suria, Ipoh, Perak.                    017-6589076      06-12-1990


                                  303 Block A8, Section 5, Wangsa       03-41420777,
M001       Mohd Azriel Rosdi                                                              07-07-1990
                                  Maju, Kuala Lumpur                     019-3462213

                                                                         04-5647890,
                                  56A, Kg. Haji Hashim, Kepala Batas,
N001       Nasihah Kassim                                               013-5234567,      05-02-1990
                                  Pulau Pinang.
                                                                         017-5234568




           www.ppk.kpm.my                                                                                 < 6 >
Learning Module: Information Systems


        There are five fields being used to store information: FriendID, IC Number, Name,
        Address, Phone Numbers and Date of Birth. Note that the field names
        correspond to the data identified from the Situation A. Notice that Phone
        Numbers field has the maximum of four phone numbers. Therefore, we will
        create four fields for phone numbers - PhoneNum1, PhoneNum2, PhoneNum3
        and PhoneNum4. Refer to Table 2.


                                         Table 2 : Friends’ Information
FriendID          Name                  Address            Phone Num1 Phone Num2 Phone Num3 Phone Num4         Date of Birth
                               123, Tmn Laksamana,

 A001      Asyraf Ibrahim      Lrg. Kuching 3/C, Kuala     03-49872345   012-3127849 013-2356765                05-10-1990
                               Lumpur

                               88, Tmn Salak Tinggi,
 A002      Amnah Razak                                     03-49650923 013-2793421                             23-04-1990
                               Sepang, Selangor.

                               119, Lorong 6/9, Taman

 A003      Asyraf Ibrahim      Desa Indah, Sg. Petani,     04-4123123    012-4223123                            19-11-1990
                               Kedah.
                               Lot 2189, Puchong
 C001      Chan Teng Hock                                  03-23145559   012-2678912 013-2629087 017-2435699    16-07-1990
                               Perdana, Selangor.

                               231, Tmn Megah, Kuala
 D001      Dasimah Mohamad                                 03-4651298    013-7891241                           29-12-1990
                               Lumpur.

                               Lot 131, Kg. Jawa,
 D002      Dasimah Mohamad                                 012-2567342                                         09-01-1990
                               Klang, Selangor.

                               230 Jalan SS1/4 Subang
 J001      Joshua Anderson                            03-41221222 012-3248970                                  04-08-1990
                               Jaya, Selangor.

           Ku Shamsinar Ku     125, Lorong 3/12, Tmn.
 K001                                                      05-6543217    017-6589076                           06-12-1990
           Saad                Sinar Suria, Ipoh, Perak.

                               303 Block A8, Section 5,
 M001      Mohd Azriel Rosdi   Wangsa Maju, Kuala          03-41420777 019-3462213                             07-07-1990
                               Lumpur

                               56A, Kg. Haji Hashim,
 N001      Nasihah Kassim      Kepala Batas, Pulau         04-5647890    017-5234568 013-5234567               05-02-1990
                               Pinang.




        Consider the following issues:
            a) If Chan Teng Hock has a fifth number, where can we store the extra phone
               number?
            b) If there are only two phone numbers, will we be wasting the phone number
               fields?




            www.ppk.kpm.my                                                                                < 7 >
Learning Module: Information Systems


We have allocated four fields for the phone numbers. We can allocate more fields
to store extra phone numbers, but how many more fields should we allocate?. It
is thus advisable to put the phone numbers in a different table.


Notice also that there are two types of data in the table: data which is seldom
changed and data which is frequently changed as classified below:


Seldom changed data: Friend ID, IC Number, Name, Address
Frequently changed data: Phone numbers


ACTIVITY 1: DO IT YOURSELF


PROJECT SITUATION:
Instructions:


1. Study the situation given below.

         Every year, Puan Jamilah, the Senior Assistant of Co-curriculum SMK
         Sungai Sala, has to prepare a report of the co-curriculum membership
         according to each class. She has problems in collecting and
         processing data such as name, identity card number, school
         registration number, class, society, sport/games and uniform unit.

         The students can also change their society and sport/games
         membership every year. Thus, Puan Jamilah has to double-check
         manually the latest membership of each student in order to produce a
         valid report.




   www.ppk.kpm.my                                                        < 8 >
Learning Module: Information Systems


   2.   Discuss what the project is about and do the following steps to help Puan
        Jamilah to prepare a report.


STEP 1: Identifying project title.
Suggest a suitable title for this project.



State your reason.




STEP 2: Identifying project requirements.


List all the data that you have identified from the above situation.


        No.                                     Data

        1

        2

        3

        4

        5

        6

        7




   www.ppk.kpm.my                                                          < 9 >
Learning Module: Information Systems


STEP 3: Classifying project requirements.
                                                                   Field names
Fill in the field names and relevant data in the table below.




Briefly write on how you are going to classify your data to be used in your
database.


Issues:
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________


Seldom changed data :
_______________________________________________
Frequently changed data:
____________________________________________




   www.ppk.kpm.my                                                     < 10 >
Learning Module: Information Systems


SUBTOPIC: 6.3.2 Develop A Database Project


B. DESIGN PHASE

LEARNING OUTCOME
You should be able to:
         6.3.2.4              design database tables.


DURATION:             2 periods


STEP 4: Designing database tables.


In this step, you should be able to identify two tables. In the Analysis Phase, the
data have been classified into two types:
    a) seldom changed data, and
    b) frequently changed data.


Obviously, the two types of data should be grouped into two tables.
   a) Information about your friends, such as Friend ID, name, address and date
      of birth (seldom changed data).
                                    Table 1 : Friends’ Information
  FriendID           Name                                   Address                        Date of Birth

 A001        Asyraf Ibrahim         123, Taman Laksamana, Lorg Kuching 3/C, Kuala Lumpur   05-10-1990

 A002        Amnah Razak            88, Taman Salak Tinggi, Sepang, Selangor.              23-04-1990
 A003        Asyraf Ibrahim         119, Lrg. 6/9, Taman Desa Indah, Sg. Petani, Kedah.    19-11-1990
 C001        Chan Teng Hock         Lot 2189, Puchong Perdana, Selangor.                   16-07-1990

 D001        Dasimah Mohamad        231, Taman Megah, Kuala Lumpur.                        29-12-1990

 D002        Dasimah Mohamad        Lot 131, Kg. Jawa, Klang, Selangor.                    09-01-1990

 J001        Joshua Anderson        230 Jalan SS1/4, Subang Jaya, Selangor.                04-08-1990

 K001        Ku Shamsinar Ku Saad 125, Lorong 3/12, Taman Sinar Suria, Ipoh, Perak.        06-12-1990

 M001        Mohd Azriel Rosdi      303 Block A8, Section 5, Wangsa Maju, Kuala Lumpur     07-07-1990

 N001        Nasihah Kassim         56A, Kg. Haji Hashim, Kepala Batas, Pulau Pinang.      05-02-1990




   www.ppk.kpm.my                                                                                  < 11 >
Learning Module: Information Systems


b) Information about phone numbers (frequently changed data).


                            Table 2 : Phone Number


              Phone Numbers

              03-49872345, 012-3127849, 013-2356765


              03-49650923, 013-2793421


              04-4123123, 012-4223123

              03-23145559, 012-2678912, 013-2629087, 017-2435699

              03-4651298, 013-7891241


              012-2567342


              03-41221222, 012-3248970


              05-6543217, 017-6589076


              03-41420777, 019-3462213


              04-5647890, 013-5234567, 017-5234568




c) You can name Table 1 as FRIEND_INFO and Table 2 as PHONE_NUM.


d) Notice from the data displayed, there are two friends with the same name.
   We need to identify each friend using a unique identifier. We cannot use
   the name field because there are similar names in the table. As such we
   use the Friend ID as the unique identifier for each friend. The field Friend
   ID is already in Table 1 and thus the friend’s data can easily be identified.
   The field, FriendID, in Table 1 acts as a primary key.


e) But it is difficult to identify which phone numbers belong to which friend in
   Table 2. Thus we may use the same identifier, Friend ID, in Table 2 to
   identify the phone numbers. The field, FriendID, in Table 2 acts as a
   foreign key.




www.ppk.kpm.my                                                         < 12 >
Learning Module: Information Systems


      f) Since the field, FriendID, can uniquely identify each friend, the two tables
         are said to be related by the FriendID field in the FRIEND_INFO table, as
         the primary key and in the PHONE_NUM table, as the foreign key. Refer
         to Figure 1.


               FRIEND_INFO                            PHONE_NUM

Primary       FriendID {PK}                          FriendID {FK}            Foreign
              Name                                   Phone_Number
  Key                                                                          Key
              Address
              Date_of_Birth

     Figure 1: Relationship between FRIEND_INFO table and PHONE_NUM table


   Note:   PK – Primary Key
           FK – Foreign Key


      g) We now have two tables which are related by the FriendID field. The
         PHONE_NUM table allows many phone numbers to be stored for each
         friend. A friend may have one phone number or more and each phone
         number can be easily identified through the field, FriendID. Note that the
         data in the field, FriendID, may repeat to enable more than one phone
         number to be stored for the same friend.




      www.ppk.kpm.my                                                         < 13 >
Learning Module: Information Systems



h) The new PHONE_NUM table will be as shown in Table 3.


                   Table 3: New PHONE_NUM table
                      FriendID      Phone Numbers

                      A001          03-4987234
                      A001          012-3127849
                      A001          013-2356765

                      A002          03-49650923

                      A002          013-2793421

                      A003          04-4123123

                      A003          012-4223123

                      C001          03-23145559

                      C001          012-2678912

                      C001          013-2629087

                      C001          017-2435699

                      D001          03-4651298

                      D001          013-7891241

                      D002          012-2567342

                      J001          03-41221222

                      J001          012-3248970

                      K001          05-6543217

                      K001          017-6589076

                      M001          03-41420777

                      M001          019-3462213

                      N001          04-5647890

                      N001          013-5234567

                      N001          017-5234568




www.ppk.kpm.my                                                < 14 >
Learning Module: Information Systems


ACTIVITY 2: DO IT YOURSELF


Based on the Project Situation in Activity 1,
1. Identify the tables


   i.     _______________________
   ii.    _______________________


2. Draw the design of tables that include:
         a. Fields
         b. Relationship
         c. Primary key
         d. Foreign key




          i. ______________                     ii. _______________




   www.ppk.kpm.my                                                     < 15 >
Learning Module: Information Systems


SUBTOPIC: 6.3.2 Develop a Database Project


C. IMPLEMENTATION PHASE

LEARNING OUTCOMES
You should be able to:
        6.3.2.5      create a database.
        6.3.2.6      create two tables that include the primary key and foreign
                     key.


DURATION:         2 periods


C.1) Create a database and two tables


Now, you need to create your database based on Situation A. Make sure your
computer has a database software e.g. Microsoft Access 2000/2003. Carefully
follow the steps in this module.


   1. Click Start button, then click Programs. Click Microsoft Office and select
      Microsoft Access 2000/2003 (Figure 1).




                         Figure 1: Opening Microsoft Access




   www.ppk.kpm.my                                                       < 16 >
Learning Module: Information Systems


2. Click File and then New. (Figure 2)




               Figure 2: Opening a new database window


3. A File New Database window will pop out. Then type PERSONAL
   PHONEBOOK in the File Name field and click the Create button.




                     Figure 3: Naming the database




www.ppk.kpm.my                                                     < 17 >
Learning Module: Information Systems



4. Click at the Tables tab, then select Create table in Design view.




                         Figure 4: Creating table


5. Key in the field names for the table FRIEND_INFO.




Field names




              Figure 5: Field names for table FRIEND_INFO




 www.ppk.kpm.my                                                        < 18 >
Learning Module: Information Systems



   6. FriendID field will be set as a primary key. Click primary key icon.
      The key icon          will appear next to the field, FriendID.




PRIMARY KEY
  FriendID
                          Figure 6: Setting Primary Key


   7. Click File and select Save As, then name your table FRIEND_INFO and
      click OK button.




                           Figure 7: Naming the table


   8. To create the second table, PHONE_NUM, follow steps 4 and 5.




                  Figure 8: Field names for table PHONE_NUM




   www.ppk.kpm.my                                                            < 19 >
Learning Module: Information Systems


   9. Click File and select Save As, then name your table PHONE_NUM and
      click OK button.




                             Figure 9: Naming the table


   10. You will be prompted to create a primary key. Click No button. FriendID
       will become a foreign key since it has been declared as the primary key in
       FRIEND_INFO table.




                      Figure 10: Primary key prompt window


   11. Click File and then Exit to end this activity.



ACTIVITY 3: DO IT YOURSELF


INSTRUCTIONS:


1. Based on Activities 1 and 2, do the following for the Project Situation:
    a. Create the database
    b. Create the two identified tables


2. Refer to the steps shown in C.1 Create a database and two tables.




   www.ppk.kpm.my                                                             < 20 >
Learning Module: Information Systems


SUBTOPIC: 6.3.2 Develop a Database Project


C. IMPLEMENTATION PHASE

LEARNING OUTCOMES:
You should be able to:
        6.3.2.7      build a relationship between the two tables.
        6.3.2.8      enter data into the tables.


DURATION:         4 periods


C.2) Build a relationship between the two tables


You need to build a relationship between the two tables from the Implementation
Phase of C.1. Carefully follow the steps in this module.


   1. Click Start button, then click Programs. Click Microsoft Office and select
      Microsoft Access 2000/2003 (Figure 1).




                         Figure 1: Opening Microsoft Access




   www.ppk.kpm.my                                                       < 21 >
Learning Module: Information Systems


2. Click File and then Open. (Figure 2)




                      Figure 2: Opening a database


3. Click PERSONAL PHONEBOOK database and click Open button.




                    Figure 3: Selecting the database




www.ppk.kpm.my                                                  < 22 >
Learning Module: Information Systems


4. Click Tools from the Menu bar and select Relationships (Figure 4).




                 Figure 4: Selecting relationship tables




5. Click Show Table icon         . From the list displayed, select the
   FRIEND_INFO table. Click Add button.




                Figure 5: Selecting FRIEND_INFO table




www.ppk.kpm.my                                                      < 23 >
Learning Module: Information Systems


6. Select PHONE_NUM table and click Add button. Then click Close button.




                   Figure 6: Selecting PHONE_NUM table


*Notice that Microsoft Access will automatically detect the common field name
for both tables, FriendID, which is the primary key for table FRIEND_INFO.


7. Click Relationships and then choose Edit Relationships. Next select
   FRIEND_INFO table. Tick Enforce Referential Integrity then click Create
   button.




                      Figure 7: Setting the relationship




www.ppk.kpm.my                                                       < 24 >
Learning Module: Information Systems


   8. Figure 8 shows the relationship between              FRIEND_INFO    and
      PHONE_NUM (Join type: One-to-Many)




                Figure 8: Graphic representation of the relationship


   9. Click File and then Close.


C.3) Enter data into tables


   10. Click the Tables tab and double click FRIEND_INFO table.




                     Figure 9: Selecting FRIEND_INFO table




   www.ppk.kpm.my                                                      < 25 >
Learning Module: Information Systems


11. Fill all the data given in Figure 10 into the FRIEND_INFO table. After
    entering all the data, click File and then Close.




                 Figure 10: Data for FRIEND_INFO table


12. Click the Tables tab and double click PHONE_NUM table.




                   Figure 11: Selecting PHONE_NUM table




www.ppk.kpm.my                                                          < 26 >
Learning Module: Information Systems


   13. Next, fill all the data given in Figure 12 into the PHONE_NUM table. After
       entering all the data, click File and then Close.




                      Figure 12: Data for PHONE_NUM table


   14. Click File and then Exit to end this activity.


ACTIVITY 4: DO IT YOURSELF


INSTRUCTIONS:
1. Refer to Activity 3 to continue these tasks for Project Situation:
    a. Build a relationship between two tables.
    b. Enter your own data in the fields.


2. Refer to the steps shown in C.2 Build a relationship between the two tables.




   www.ppk.kpm.my                                                         < 27 >
Learning Module: Information Systems


SUBTOPIC: 6.3.2 Develop a database project


D. TESTING

LEARNING OUTCOMES:
You should be able to:
        6.3.2.9      create a form that is related to the tables.
        6.3.2.10     create a query to retrieve required information with one or
                      more conditions.
        6.3.2.11     generate a report.


DURATION:         4 periods


Form, Query and Report


From the database and tables created, we can do test retrieval of the data
entered using forms, queries, and reports.




   www.ppk.kpm.my                                                          < 28 >
Learning Module: Information Systems


D.1) Creating forms


For this activity, you will create a form and a query based on the Implementation
Phase. After that, you will generate a report regarding your database.
  1. Click Start button, and then All Programs. Click Microsoft Office and
     select Microsoft Access 2000/2003 (Figure 1).




                      Figure 1: Opening Microsoft Access




   www.ppk.kpm.my                                                        < 29 >
Learning Module: Information Systems


2. Click File and then Open. (Figure 2)




                        Figure 2: Opening database


3. Click PERSONAL PHONEBOOK and click Open button. (Figure 3)




          Figure 3: Opening PERSONAL PHONEBOOK database




 www.ppk.kpm.my                                                  < 30 >
Learning Module: Information Systems


4. Click the Forms tab then select Create form by using wizard. The
   following Form Wizard screen will appear. Then choose FRIEND_INFO
   table and move all the fields in the Available Fields section into the
   Selected Fields section by using this icon  . Click Next.




             Figure 4: Selecting fields in FRIEND_INFO table


5. Choose any layout given and then click Next.




                        Figure 5: Selecting layout




 www.ppk.kpm.my                                                  < 31 >
Learning Module: Information Systems


6. Choose any style given and click Next.




                         Figure 6: Selecting style


7. Type PERSONAL PHONEBOOK for your form title. Then click Finish.




                        Figure 7: Naming the form




 www.ppk.kpm.my                                                  < 32 >
Learning Module: Information Systems


  8. Figure 8 as shown below will appear.




                       Figure 8: Data is displayed in form


  9. Notice that there are many layouts and styles you can choose to view your
     data. You may experiment with the different layouts and styles.


D.2) Creating query
     Microsoft Access will also allow you to view data using queries.


  10. Click the Queries tab. Select Create query by using wizard.




                            Figure 9: Creating query




   www.ppk.kpm.my                                                       < 33 >
Learning Module: Information Systems


11. Choose FRIEND_INFO table, move all fields in the Available Fields
    section by using this icon into the Selected Fields section. Then click
    Next.




           Figure 10: Selecting fields from FRIEND_INFO table




 www.ppk.kpm.my                                                    < 34 >
Learning Module: Information Systems


12. Choose PHONE_NUM table, then move Phone_Number field in the
    Available Fields section into the Selected Fields section using this icon.
            Click Next.




            Figure 11: Selecting fields from PHONE_NUM table


13. Type MY PHONEBOOK for your query title. Then click Finish.




                            Figure 12: Naming query



 www.ppk.kpm.my                                                         < 35 >
Learning Module: Information Systems


14. Data in query as shown in Figure 13 will appear.




             Figure 13: Display of data in query MY PHONEBOOK


15. Click File and then choose Close.


 D.3) Generate report
     Notice that in the above query, there are repetitions of data for FriendID,
     name, address, and Date_of_Birth because your friends have more than
     one phone numbers. Each record has a different phone number. Your
     view of data can be better organized using reports.
16. Click the Reports tab. Choose Create report by using wizard.




                         Figure 14: Generate report




 www.ppk.kpm.my                                                          < 36 >
Learning Module: Information Systems



17. Choose Query: MY PHONEBOOK and move all fields in the Available
    Fields into Selected Fields section using this icon . Click Next.




                                                            Query: MY PHONEBOOK




                         Figure 15: Selecting fields


18. Choose which view you want for your data. Click Next.




                         Figure 16: Selecting view




 www.ppk.kpm.my                                                   < 37 >
Learning Module: Information Systems


19. You will be prompted whether to group your data. Click Next.




                          Figure 17: Grouping data


20. You will be asked how you want data to be displayed in the report. Click
    Next.




                           Figure 18: Sorting data




 www.ppk.kpm.my                                                         < 38 >
Learning Module: Information Systems


21. Choose a layout for your report and then click Next. (You can choose any
    layout available)




                       Figure 19: Choosing report layout




22. Choose any style for your report and then click Next.




                    Figures 20: Choosing style for report




 www.ppk.kpm.my                                                       < 39 >
Learning Module: Information Systems


23. Type PHONEBOOK for your report title. Then click Finish.




                 Figures 21: Naming the report PHONEBOOK


24. Data is displayed as shown in Figure 22.




           Figure 22: Data is displayed in the report PHONEBOOK


25. Click File and finally choose Exit to end this activity.



 www.ppk.kpm.my                                                      < 40 >
Learning Module: Information Systems



ACTIVITY 5: DO IT YOURSELF


Instructions:


Refer to Activity 4 and do the following tasks:
1. Create a form which is related to tables.
2. Create a query to retrieve required information.
3. Generate a report.




   www.ppk.kpm.my                                                     < 41 >
Learning Module: Information Systems


SUBTOPIC: 6.3.2 Develop a Database Project

LEARNING OUTCOME:
You should be able to:
         6.3.2.12      gather all the documents from the above phases into a folio.


DURATION:         2 periods


ACTIVITY 6: DO IT YOURSELF


Instructions:


1. All documents resulting from Activities 1 to 5 must be compiled into a folio.
2. Arrange your documents according to the following format:
    a. Project title
    b. Project background
    c. Analysis phase
    d. Design phase
    e. Implementation phase
    f. Testing phase




   www.ppk.kpm.my                                                           < 42 >

Contenu connexe

En vedette

PHYSICAL TRANSMISSION MEDIA
PHYSICAL TRANSMISSION MEDIA PHYSICAL TRANSMISSION MEDIA
PHYSICAL TRANSMISSION MEDIA Kak Yong
 
Configuration and testing of network
Configuration and testing of networkConfiguration and testing of network
Configuration and testing of networkKak Yong
 
Multimedia immersif
Multimedia immersifMultimedia immersif
Multimedia immersifKak Yong
 
Chapter04 -- network protocols
Chapter04  -- network protocolsChapter04  -- network protocols
Chapter04 -- network protocolsRaja Waseem Akhtar
 
WIRELESS TRANSMISSION MEDIA
WIRELESS  TRANSMISSION MEDIAWIRELESS  TRANSMISSION MEDIA
WIRELESS TRANSMISSION MEDIAKak Yong
 
NETWORK PROTOCOL
NETWORK PROTOCOLNETWORK PROTOCOL
NETWORK PROTOCOLKak Yong
 
BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS Kak Yong
 
Introduction to computer network
Introduction to computer networkIntroduction to computer network
Introduction to computer networkAshita Agrawal
 

En vedette (9)

PHYSICAL TRANSMISSION MEDIA
PHYSICAL TRANSMISSION MEDIA PHYSICAL TRANSMISSION MEDIA
PHYSICAL TRANSMISSION MEDIA
 
Configuration and testing of network
Configuration and testing of networkConfiguration and testing of network
Configuration and testing of network
 
Multimedia immersif
Multimedia immersifMultimedia immersif
Multimedia immersif
 
Chapter04 -- network protocols
Chapter04  -- network protocolsChapter04  -- network protocols
Chapter04 -- network protocols
 
WIRELESS TRANSMISSION MEDIA
WIRELESS  TRANSMISSION MEDIAWIRELESS  TRANSMISSION MEDIA
WIRELESS TRANSMISSION MEDIA
 
Ethical hacking
Ethical hackingEthical hacking
Ethical hacking
 
NETWORK PROTOCOL
NETWORK PROTOCOLNETWORK PROTOCOL
NETWORK PROTOCOL
 
BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS BASIC CONCEPTS OF COMPUTER NETWORKS
BASIC CONCEPTS OF COMPUTER NETWORKS
 
Introduction to computer network
Introduction to computer networkIntroduction to computer network
Introduction to computer network
 

Similaire à Module info systems

Learning area 6 information systems
Learning area 6   information systemsLearning area 6   information systems
Learning area 6 information systemsShuren Lew
 
2: Project Activities
2: Project Activities2: Project Activities
2: Project Activitiesrzurina
 
Curriculum vitae santoso adi priyono 2016
Curriculum vitae santoso adi priyono 2016Curriculum vitae santoso adi priyono 2016
Curriculum vitae santoso adi priyono 2016Santoso AdiPriyono
 
Curriculum vitae santoso adi priyono 2016
Curriculum vitae santoso adi priyono 2016Curriculum vitae santoso adi priyono 2016
Curriculum vitae santoso adi priyono 2016Santoso AdiPriyono
 
Technologies and Apps for Everyone in the Brightspace Community
Technologies and Apps for Everyone in the Brightspace CommunityTechnologies and Apps for Everyone in the Brightspace Community
Technologies and Apps for Everyone in the Brightspace CommunityD2L
 
Technologies and Apps for Everyone in the Brightspace Community
Technologies and Apps for Everyone in the Brightspace CommunityTechnologies and Apps for Everyone in the Brightspace Community
Technologies and Apps for Everyone in the Brightspace CommunityD2L Barry
 
Icse 2013-tutorial-data-science-for-software-engineering
Icse 2013-tutorial-data-science-for-software-engineeringIcse 2013-tutorial-data-science-for-software-engineering
Icse 2013-tutorial-data-science-for-software-engineeringCS, NcState
 
SANDIP UPDATED CV
SANDIP UPDATED CVSANDIP UPDATED CV
SANDIP UPDATED CVSandip Dey
 
Proposal for Performing a Study on Banking Information System
Proposal for Performing a Study on Banking Information SystemProposal for Performing a Study on Banking Information System
Proposal for Performing a Study on Banking Information SystemMisu Md Rakib Hossain
 
26022009 Skit Slides Web
26022009 Skit Slides Web26022009 Skit Slides Web
26022009 Skit Slides Webzaidi rozan
 
Fundamentals of Cloud Computing
Fundamentals of Cloud ComputingFundamentals of Cloud Computing
Fundamentals of Cloud ComputingSouvik Pal
 
Major AssignmentObjectivesThis assignment will provide practice .docx
Major AssignmentObjectivesThis assignment will provide practice .docxMajor AssignmentObjectivesThis assignment will provide practice .docx
Major AssignmentObjectivesThis assignment will provide practice .docxcarliotwaycave
 
Cloud_Storage
Cloud_Storage Cloud_Storage
Cloud_Storage Larvish1
 

Similaire à Module info systems (20)

Learning area 6 information systems
Learning area 6   information systemsLearning area 6   information systems
Learning area 6 information systems
 
2: Project Activities
2: Project Activities2: Project Activities
2: Project Activities
 
18 mdcse117 m&amp;wt -course orientation
18 mdcse117 m&amp;wt -course orientation18 mdcse117 m&amp;wt -course orientation
18 mdcse117 m&amp;wt -course orientation
 
Resume1 software
Resume1 softwareResume1 software
Resume1 software
 
Data Management and Statistical Analysis using SPSS Workshop November 2012
Data Management and Statistical Analysis using SPSS Workshop November 2012Data Management and Statistical Analysis using SPSS Workshop November 2012
Data Management and Statistical Analysis using SPSS Workshop November 2012
 
Curriculum vitae santoso adi priyono 2016
Curriculum vitae santoso adi priyono 2016Curriculum vitae santoso adi priyono 2016
Curriculum vitae santoso adi priyono 2016
 
Curriculum vitae santoso adi priyono 2016
Curriculum vitae santoso adi priyono 2016Curriculum vitae santoso adi priyono 2016
Curriculum vitae santoso adi priyono 2016
 
Technologies and Apps for Everyone in the Brightspace Community
Technologies and Apps for Everyone in the Brightspace CommunityTechnologies and Apps for Everyone in the Brightspace Community
Technologies and Apps for Everyone in the Brightspace Community
 
Technologies and Apps for Everyone in the Brightspace Community
Technologies and Apps for Everyone in the Brightspace CommunityTechnologies and Apps for Everyone in the Brightspace Community
Technologies and Apps for Everyone in the Brightspace Community
 
Icse 2013-tutorial-data-science-for-software-engineering
Icse 2013-tutorial-data-science-for-software-engineeringIcse 2013-tutorial-data-science-for-software-engineering
Icse 2013-tutorial-data-science-for-software-engineering
 
SANDIP UPDATED CV
SANDIP UPDATED CVSANDIP UPDATED CV
SANDIP UPDATED CV
 
CV Algi
CV AlgiCV Algi
CV Algi
 
thangarasu_resume
thangarasu_resumethangarasu_resume
thangarasu_resume
 
Thangarasu resume
Thangarasu resumeThangarasu resume
Thangarasu resume
 
Proposal for Performing a Study on Banking Information System
Proposal for Performing a Study on Banking Information SystemProposal for Performing a Study on Banking Information System
Proposal for Performing a Study on Banking Information System
 
26022009 Skit Slides Web
26022009 Skit Slides Web26022009 Skit Slides Web
26022009 Skit Slides Web
 
Resume (1)
Resume (1)Resume (1)
Resume (1)
 
Fundamentals of Cloud Computing
Fundamentals of Cloud ComputingFundamentals of Cloud Computing
Fundamentals of Cloud Computing
 
Major AssignmentObjectivesThis assignment will provide practice .docx
Major AssignmentObjectivesThis assignment will provide practice .docxMajor AssignmentObjectivesThis assignment will provide practice .docx
Major AssignmentObjectivesThis assignment will provide practice .docx
 
Cloud_Storage
Cloud_Storage Cloud_Storage
Cloud_Storage
 

Plus de Kak Yong

Module programming
Module programmingModule programming
Module programmingKak Yong
 
Module ict society
Module ict societyModule ict society
Module ict societyKak Yong
 
Module computer systems
Module computer systemsModule computer systems
Module computer systemsKak Yong
 
Module networks
Module networksModule networks
Module networksKak Yong
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programmingKak Yong
 
La4 ict-topic-4-multimedia
La4 ict-topic-4-multimediaLa4 ict-topic-4-multimedia
La4 ict-topic-4-multimediaKak Yong
 
La3 ict-topic-3-computer-networks
La3 ict-topic-3-computer-networksLa3 ict-topic-3-computer-networks
La3 ict-topic-3-computer-networksKak Yong
 
La2 ict-topic-2-computer-systems
La2 ict-topic-2-computer-systemsLa2 ict-topic-2-computer-systems
La2 ict-topic-2-computer-systemsKak Yong
 
La1 ict-topic-1-ict-and-society
La1 ict-topic-1-ict-and-societyLa1 ict-topic-1-ict-and-society
La1 ict-topic-1-ict-and-societyKak Yong
 
Bidangpembelajaran6 1-120925005634-phpapp02
Bidangpembelajaran6 1-120925005634-phpapp02Bidangpembelajaran6 1-120925005634-phpapp02
Bidangpembelajaran6 1-120925005634-phpapp02Kak Yong
 
Bidangpembelajaran5 3-120925005106-phpapp02
Bidangpembelajaran5 3-120925005106-phpapp02Bidangpembelajaran5 3-120925005106-phpapp02
Bidangpembelajaran5 3-120925005106-phpapp02Kak Yong
 
Bidangpembelajaran5 2-120925005109-phpapp02
Bidangpembelajaran5 2-120925005109-phpapp02Bidangpembelajaran5 2-120925005109-phpapp02
Bidangpembelajaran5 2-120925005109-phpapp02Kak Yong
 
Bidangpembelajaran5 1-120925005019-phpapp01
Bidangpembelajaran5 1-120925005019-phpapp01Bidangpembelajaran5 1-120925005019-phpapp01
Bidangpembelajaran5 1-120925005019-phpapp01Kak Yong
 
Bidangpembelajaran4 3-120925004752-phpapp01
Bidangpembelajaran4 3-120925004752-phpapp01Bidangpembelajaran4 3-120925004752-phpapp01
Bidangpembelajaran4 3-120925004752-phpapp01Kak Yong
 
Bidangpembelajaran4 2-120925004637-phpapp02
Bidangpembelajaran4 2-120925004637-phpapp02Bidangpembelajaran4 2-120925004637-phpapp02
Bidangpembelajaran4 2-120925004637-phpapp02Kak Yong
 
Bidangpembelajaran3 3tingkatan4-120716213007-phpapp02
Bidangpembelajaran3 3tingkatan4-120716213007-phpapp02Bidangpembelajaran3 3tingkatan4-120716213007-phpapp02
Bidangpembelajaran3 3tingkatan4-120716213007-phpapp02Kak Yong
 
Bidangpembelajaran3 2tingkatan4-120716212821-phpapp01
Bidangpembelajaran3 2tingkatan4-120716212821-phpapp01Bidangpembelajaran3 2tingkatan4-120716212821-phpapp01
Bidangpembelajaran3 2tingkatan4-120716212821-phpapp01Kak Yong
 
Bidangpembelajaran3 1tingkatan4-120716212628-phpapp02
Bidangpembelajaran3 1tingkatan4-120716212628-phpapp02Bidangpembelajaran3 1tingkatan4-120716212628-phpapp02
Bidangpembelajaran3 1tingkatan4-120716212628-phpapp02Kak Yong
 
Bidangpembelajaran2 3tingkatan4-120716120706-phpapp02
Bidangpembelajaran2 3tingkatan4-120716120706-phpapp02Bidangpembelajaran2 3tingkatan4-120716120706-phpapp02
Bidangpembelajaran2 3tingkatan4-120716120706-phpapp02Kak Yong
 

Plus de Kak Yong (20)

Module programming
Module programmingModule programming
Module programming
 
Module ict society
Module ict societyModule ict society
Module ict society
 
Module computer systems
Module computer systemsModule computer systems
Module computer systems
 
Module networks
Module networksModule networks
Module networks
 
Synopsis
SynopsisSynopsis
Synopsis
 
La5 ict-topic-5-programming
La5 ict-topic-5-programmingLa5 ict-topic-5-programming
La5 ict-topic-5-programming
 
La4 ict-topic-4-multimedia
La4 ict-topic-4-multimediaLa4 ict-topic-4-multimedia
La4 ict-topic-4-multimedia
 
La3 ict-topic-3-computer-networks
La3 ict-topic-3-computer-networksLa3 ict-topic-3-computer-networks
La3 ict-topic-3-computer-networks
 
La2 ict-topic-2-computer-systems
La2 ict-topic-2-computer-systemsLa2 ict-topic-2-computer-systems
La2 ict-topic-2-computer-systems
 
La1 ict-topic-1-ict-and-society
La1 ict-topic-1-ict-and-societyLa1 ict-topic-1-ict-and-society
La1 ict-topic-1-ict-and-society
 
Bidangpembelajaran6 1-120925005634-phpapp02
Bidangpembelajaran6 1-120925005634-phpapp02Bidangpembelajaran6 1-120925005634-phpapp02
Bidangpembelajaran6 1-120925005634-phpapp02
 
Bidangpembelajaran5 3-120925005106-phpapp02
Bidangpembelajaran5 3-120925005106-phpapp02Bidangpembelajaran5 3-120925005106-phpapp02
Bidangpembelajaran5 3-120925005106-phpapp02
 
Bidangpembelajaran5 2-120925005109-phpapp02
Bidangpembelajaran5 2-120925005109-phpapp02Bidangpembelajaran5 2-120925005109-phpapp02
Bidangpembelajaran5 2-120925005109-phpapp02
 
Bidangpembelajaran5 1-120925005019-phpapp01
Bidangpembelajaran5 1-120925005019-phpapp01Bidangpembelajaran5 1-120925005019-phpapp01
Bidangpembelajaran5 1-120925005019-phpapp01
 
Bidangpembelajaran4 3-120925004752-phpapp01
Bidangpembelajaran4 3-120925004752-phpapp01Bidangpembelajaran4 3-120925004752-phpapp01
Bidangpembelajaran4 3-120925004752-phpapp01
 
Bidangpembelajaran4 2-120925004637-phpapp02
Bidangpembelajaran4 2-120925004637-phpapp02Bidangpembelajaran4 2-120925004637-phpapp02
Bidangpembelajaran4 2-120925004637-phpapp02
 
Bidangpembelajaran3 3tingkatan4-120716213007-phpapp02
Bidangpembelajaran3 3tingkatan4-120716213007-phpapp02Bidangpembelajaran3 3tingkatan4-120716213007-phpapp02
Bidangpembelajaran3 3tingkatan4-120716213007-phpapp02
 
Bidangpembelajaran3 2tingkatan4-120716212821-phpapp01
Bidangpembelajaran3 2tingkatan4-120716212821-phpapp01Bidangpembelajaran3 2tingkatan4-120716212821-phpapp01
Bidangpembelajaran3 2tingkatan4-120716212821-phpapp01
 
Bidangpembelajaran3 1tingkatan4-120716212628-phpapp02
Bidangpembelajaran3 1tingkatan4-120716212628-phpapp02Bidangpembelajaran3 1tingkatan4-120716212628-phpapp02
Bidangpembelajaran3 1tingkatan4-120716212628-phpapp02
 
Bidangpembelajaran2 3tingkatan4-120716120706-phpapp02
Bidangpembelajaran2 3tingkatan4-120716120706-phpapp02Bidangpembelajaran2 3tingkatan4-120716120706-phpapp02
Bidangpembelajaran2 3tingkatan4-120716120706-phpapp02
 

Module info systems

  • 1.
  • 2. Learning Module: Information Systems 1. What is it? This is a learning module for a specific Learning Outcome as stipulated in the HSP that is: € 6.3 Database Development 2. Who is it for? This module is for students who are taking the ICT subject as their elective and for those who are interested in ICT. 3. What can be achieved? Upon completion of this module, you should be able to: € describe the phases of system development. € follow the correct steps in developing a database project. 4. Is previous knowledge necessary? Yes. Before using this module, you should have learnt about features in database such as primary and foreign keys and the importance of relationship in database. You also should know about database objects/tools which include table, form, query, and report. www.ppk.kpm.my < 1 >
  • 3. Learning Module: Information Systems TOPIC : 6.3 DATABASE DEVELOPMENT SUBTOPIC : 6.3.2 Develop A Database Project LEARNING OUTCOMES You should be able to: 6.3.2.1 identify a project. 6.3.2.2 identify the project requirements. 6.3.2.3 classify and design project requirements into two tables. 6.3.2.4 design database tables. 6.3.2.5 create a database. 6.3.2.6 create two tables that include the primary key in each table. 6.3.2.7 build a relationship between the two tables. 6.3.2.8 enter data into the tables. 6.3.2.9 create a form that is related to the tables. 6.3.2.10 create a query to retrieve required information with one or more conditions. 6.3.2.11 generate a report. 6.3.2.12 gather all the documents from the above phases. DURATION : 18 periods www.ppk.kpm.my < 2 >
  • 4. Learning Module: Information Systems REFERENCES A. Books 1. Capron H.L, J.A. Johnson (2005) Computers: Tools For An Information Age. Complete. Eighth Edition. 2. Shelly G.B, Cashman T.J, Vermaat M.E, Walker T.J. (2006) Discovering Computers 2007 : A Gateway to Information, Course Technology. 3. Bryan Pfaffenberger, Bill Daley (2003) Computers In Your Future, Prentice Hall. B. Requirements 1. Microsoft Access 2000/2003 C. Websites Addresses 1. http://www.fgcu.edu/support/office2000/access/index.html 2. http://www.bcschools.net/staff/AccessHelp.htm 3. http://office.microsoft.com/en-us/FX010857911033.aspx 4. http://en.wikipedia.org/wiki/Microsoft_Access 5. http://en.wikipedia.org/wiki/Relational_database 6. http://www.functionx.com/access D. Other sources 1. Windows Help and Support Center. www.ppk.kpm.my < 3 >
  • 5. Learning Module: Information Systems SUBTOPIC: 6.3.2 Develop A Database Project A. Analysis Phase LEARNING OUTCOMES You should be able to: 6.3.2.1 identify a project. 6.3.2.2 identify the project requirements. 6.3.2.3 classify and design project requirements into two tables. DURATION: 4 periods INSTRUCTIONS: 1. Read the situation below. 2. Understand the steps taken to identify the project and data. 3. Look on how data is classified and how a database is designed. SITUATION A: You want to create a database of your friends’ telephone numbers. Majority of your friends have more than one telephone numbers. The data that you will store in your database are FriendID, Name, Address, Phone Numbers and Date of Birth. STEP 1: Identifying project title. Based on the above situation, the most suitable title for this project is PERSONAL PHONEBOOK. Reason : The telephone numbers belong to your personal friends. www.ppk.kpm.my < 4 >
  • 6. Learning Module: Information Systems STEP 2: Identifying project requirements. The data from the above situation are: No. Data 1 FriendID 2 Name 3 Address 4 Phone Numbers 5 Date of Birth STEP 3: Classifying project requirements. Consider the following issues: a. Many of your friends have more than one telephone numbers. b. Existing telephone numbers of your friends may change. c. Your friends may also add or cancel their telephone numbers. www.ppk.kpm.my < 5 >
  • 7. Learning Module: Information Systems Consider the following information in Table 1. Table 1 : Friends’ Information Field names FriendID Name Address Phone Numbers Date of Birth 03-49872345, 123, Taman Laksamana, Lorong A001 Asyraf Ibrahim 012-3127849, 05-10-1990 Kuching 3/C, Kuala Lumpur 013-2356765 88, Taman Salak Tinggi, Sepang, 03-49650923, A002 Amnah Razak 23-04-1990 Selangor. 013-2793421 119, Lorong 6/9, Taman Desa Indah, 04-4123123, A003 Asyraf Ibrahim 19-11-1990 Sg. Petani, Kedah. 012-4223123 Record 03-23145559, Lot 2189, Puchong Perdana, 012-2678912, Chan Teng Hock 16-07-1990 Selangor. 013-2629087, C001 017-2435699 D001 03-4651298, Dasimah Mohamad 231, Taman Megah, Kuala Lumpur. 29-12-1990 013-7891241 D002 Dasimah Mohamad Lot 131, Kg. Jawa, Klang, Selangor. 012-2567342 09-01-1990 Data 230 Jalan SS1/4 Subang Jaya, 03-41221222, J001 Joshua Anderson 04-08-1990 Selangor. 012-3248970 125, Lorong 3/12, Taman Sinar 05-6543217, K001 Ku Shamsinar Ku Saad Suria, Ipoh, Perak. 017-6589076 06-12-1990 303 Block A8, Section 5, Wangsa 03-41420777, M001 Mohd Azriel Rosdi 07-07-1990 Maju, Kuala Lumpur 019-3462213 04-5647890, 56A, Kg. Haji Hashim, Kepala Batas, N001 Nasihah Kassim 013-5234567, 05-02-1990 Pulau Pinang. 017-5234568 www.ppk.kpm.my < 6 >
  • 8. Learning Module: Information Systems There are five fields being used to store information: FriendID, IC Number, Name, Address, Phone Numbers and Date of Birth. Note that the field names correspond to the data identified from the Situation A. Notice that Phone Numbers field has the maximum of four phone numbers. Therefore, we will create four fields for phone numbers - PhoneNum1, PhoneNum2, PhoneNum3 and PhoneNum4. Refer to Table 2. Table 2 : Friends’ Information FriendID Name Address Phone Num1 Phone Num2 Phone Num3 Phone Num4 Date of Birth 123, Tmn Laksamana, A001 Asyraf Ibrahim Lrg. Kuching 3/C, Kuala 03-49872345 012-3127849 013-2356765 05-10-1990 Lumpur 88, Tmn Salak Tinggi, A002 Amnah Razak 03-49650923 013-2793421 23-04-1990 Sepang, Selangor. 119, Lorong 6/9, Taman A003 Asyraf Ibrahim Desa Indah, Sg. Petani, 04-4123123 012-4223123 19-11-1990 Kedah. Lot 2189, Puchong C001 Chan Teng Hock 03-23145559 012-2678912 013-2629087 017-2435699 16-07-1990 Perdana, Selangor. 231, Tmn Megah, Kuala D001 Dasimah Mohamad 03-4651298 013-7891241 29-12-1990 Lumpur. Lot 131, Kg. Jawa, D002 Dasimah Mohamad 012-2567342 09-01-1990 Klang, Selangor. 230 Jalan SS1/4 Subang J001 Joshua Anderson 03-41221222 012-3248970 04-08-1990 Jaya, Selangor. Ku Shamsinar Ku 125, Lorong 3/12, Tmn. K001 05-6543217 017-6589076 06-12-1990 Saad Sinar Suria, Ipoh, Perak. 303 Block A8, Section 5, M001 Mohd Azriel Rosdi Wangsa Maju, Kuala 03-41420777 019-3462213 07-07-1990 Lumpur 56A, Kg. Haji Hashim, N001 Nasihah Kassim Kepala Batas, Pulau 04-5647890 017-5234568 013-5234567 05-02-1990 Pinang. Consider the following issues: a) If Chan Teng Hock has a fifth number, where can we store the extra phone number? b) If there are only two phone numbers, will we be wasting the phone number fields? www.ppk.kpm.my < 7 >
  • 9. Learning Module: Information Systems We have allocated four fields for the phone numbers. We can allocate more fields to store extra phone numbers, but how many more fields should we allocate?. It is thus advisable to put the phone numbers in a different table. Notice also that there are two types of data in the table: data which is seldom changed and data which is frequently changed as classified below: Seldom changed data: Friend ID, IC Number, Name, Address Frequently changed data: Phone numbers ACTIVITY 1: DO IT YOURSELF PROJECT SITUATION: Instructions: 1. Study the situation given below. Every year, Puan Jamilah, the Senior Assistant of Co-curriculum SMK Sungai Sala, has to prepare a report of the co-curriculum membership according to each class. She has problems in collecting and processing data such as name, identity card number, school registration number, class, society, sport/games and uniform unit. The students can also change their society and sport/games membership every year. Thus, Puan Jamilah has to double-check manually the latest membership of each student in order to produce a valid report. www.ppk.kpm.my < 8 >
  • 10. Learning Module: Information Systems 2. Discuss what the project is about and do the following steps to help Puan Jamilah to prepare a report. STEP 1: Identifying project title. Suggest a suitable title for this project. State your reason. STEP 2: Identifying project requirements. List all the data that you have identified from the above situation. No. Data 1 2 3 4 5 6 7 www.ppk.kpm.my < 9 >
  • 11. Learning Module: Information Systems STEP 3: Classifying project requirements. Field names Fill in the field names and relevant data in the table below. Briefly write on how you are going to classify your data to be used in your database. Issues: ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ ________________________________________________________________ Seldom changed data : _______________________________________________ Frequently changed data: ____________________________________________ www.ppk.kpm.my < 10 >
  • 12. Learning Module: Information Systems SUBTOPIC: 6.3.2 Develop A Database Project B. DESIGN PHASE LEARNING OUTCOME You should be able to: 6.3.2.4 design database tables. DURATION: 2 periods STEP 4: Designing database tables. In this step, you should be able to identify two tables. In the Analysis Phase, the data have been classified into two types: a) seldom changed data, and b) frequently changed data. Obviously, the two types of data should be grouped into two tables. a) Information about your friends, such as Friend ID, name, address and date of birth (seldom changed data). Table 1 : Friends’ Information FriendID Name Address Date of Birth A001 Asyraf Ibrahim 123, Taman Laksamana, Lorg Kuching 3/C, Kuala Lumpur 05-10-1990 A002 Amnah Razak 88, Taman Salak Tinggi, Sepang, Selangor. 23-04-1990 A003 Asyraf Ibrahim 119, Lrg. 6/9, Taman Desa Indah, Sg. Petani, Kedah. 19-11-1990 C001 Chan Teng Hock Lot 2189, Puchong Perdana, Selangor. 16-07-1990 D001 Dasimah Mohamad 231, Taman Megah, Kuala Lumpur. 29-12-1990 D002 Dasimah Mohamad Lot 131, Kg. Jawa, Klang, Selangor. 09-01-1990 J001 Joshua Anderson 230 Jalan SS1/4, Subang Jaya, Selangor. 04-08-1990 K001 Ku Shamsinar Ku Saad 125, Lorong 3/12, Taman Sinar Suria, Ipoh, Perak. 06-12-1990 M001 Mohd Azriel Rosdi 303 Block A8, Section 5, Wangsa Maju, Kuala Lumpur 07-07-1990 N001 Nasihah Kassim 56A, Kg. Haji Hashim, Kepala Batas, Pulau Pinang. 05-02-1990 www.ppk.kpm.my < 11 >
  • 13. Learning Module: Information Systems b) Information about phone numbers (frequently changed data). Table 2 : Phone Number Phone Numbers 03-49872345, 012-3127849, 013-2356765 03-49650923, 013-2793421 04-4123123, 012-4223123 03-23145559, 012-2678912, 013-2629087, 017-2435699 03-4651298, 013-7891241 012-2567342 03-41221222, 012-3248970 05-6543217, 017-6589076 03-41420777, 019-3462213 04-5647890, 013-5234567, 017-5234568 c) You can name Table 1 as FRIEND_INFO and Table 2 as PHONE_NUM. d) Notice from the data displayed, there are two friends with the same name. We need to identify each friend using a unique identifier. We cannot use the name field because there are similar names in the table. As such we use the Friend ID as the unique identifier for each friend. The field Friend ID is already in Table 1 and thus the friend’s data can easily be identified. The field, FriendID, in Table 1 acts as a primary key. e) But it is difficult to identify which phone numbers belong to which friend in Table 2. Thus we may use the same identifier, Friend ID, in Table 2 to identify the phone numbers. The field, FriendID, in Table 2 acts as a foreign key. www.ppk.kpm.my < 12 >
  • 14. Learning Module: Information Systems f) Since the field, FriendID, can uniquely identify each friend, the two tables are said to be related by the FriendID field in the FRIEND_INFO table, as the primary key and in the PHONE_NUM table, as the foreign key. Refer to Figure 1. FRIEND_INFO PHONE_NUM Primary FriendID {PK} FriendID {FK} Foreign Name Phone_Number Key Key Address Date_of_Birth Figure 1: Relationship between FRIEND_INFO table and PHONE_NUM table Note: PK – Primary Key FK – Foreign Key g) We now have two tables which are related by the FriendID field. The PHONE_NUM table allows many phone numbers to be stored for each friend. A friend may have one phone number or more and each phone number can be easily identified through the field, FriendID. Note that the data in the field, FriendID, may repeat to enable more than one phone number to be stored for the same friend. www.ppk.kpm.my < 13 >
  • 15. Learning Module: Information Systems h) The new PHONE_NUM table will be as shown in Table 3. Table 3: New PHONE_NUM table FriendID Phone Numbers A001 03-4987234 A001 012-3127849 A001 013-2356765 A002 03-49650923 A002 013-2793421 A003 04-4123123 A003 012-4223123 C001 03-23145559 C001 012-2678912 C001 013-2629087 C001 017-2435699 D001 03-4651298 D001 013-7891241 D002 012-2567342 J001 03-41221222 J001 012-3248970 K001 05-6543217 K001 017-6589076 M001 03-41420777 M001 019-3462213 N001 04-5647890 N001 013-5234567 N001 017-5234568 www.ppk.kpm.my < 14 >
  • 16. Learning Module: Information Systems ACTIVITY 2: DO IT YOURSELF Based on the Project Situation in Activity 1, 1. Identify the tables i. _______________________ ii. _______________________ 2. Draw the design of tables that include: a. Fields b. Relationship c. Primary key d. Foreign key i. ______________ ii. _______________ www.ppk.kpm.my < 15 >
  • 17. Learning Module: Information Systems SUBTOPIC: 6.3.2 Develop a Database Project C. IMPLEMENTATION PHASE LEARNING OUTCOMES You should be able to: 6.3.2.5 create a database. 6.3.2.6 create two tables that include the primary key and foreign key. DURATION: 2 periods C.1) Create a database and two tables Now, you need to create your database based on Situation A. Make sure your computer has a database software e.g. Microsoft Access 2000/2003. Carefully follow the steps in this module. 1. Click Start button, then click Programs. Click Microsoft Office and select Microsoft Access 2000/2003 (Figure 1). Figure 1: Opening Microsoft Access www.ppk.kpm.my < 16 >
  • 18. Learning Module: Information Systems 2. Click File and then New. (Figure 2) Figure 2: Opening a new database window 3. A File New Database window will pop out. Then type PERSONAL PHONEBOOK in the File Name field and click the Create button. Figure 3: Naming the database www.ppk.kpm.my < 17 >
  • 19. Learning Module: Information Systems 4. Click at the Tables tab, then select Create table in Design view. Figure 4: Creating table 5. Key in the field names for the table FRIEND_INFO. Field names Figure 5: Field names for table FRIEND_INFO www.ppk.kpm.my < 18 >
  • 20. Learning Module: Information Systems 6. FriendID field will be set as a primary key. Click primary key icon. The key icon will appear next to the field, FriendID. PRIMARY KEY FriendID Figure 6: Setting Primary Key 7. Click File and select Save As, then name your table FRIEND_INFO and click OK button. Figure 7: Naming the table 8. To create the second table, PHONE_NUM, follow steps 4 and 5. Figure 8: Field names for table PHONE_NUM www.ppk.kpm.my < 19 >
  • 21. Learning Module: Information Systems 9. Click File and select Save As, then name your table PHONE_NUM and click OK button. Figure 9: Naming the table 10. You will be prompted to create a primary key. Click No button. FriendID will become a foreign key since it has been declared as the primary key in FRIEND_INFO table. Figure 10: Primary key prompt window 11. Click File and then Exit to end this activity. ACTIVITY 3: DO IT YOURSELF INSTRUCTIONS: 1. Based on Activities 1 and 2, do the following for the Project Situation: a. Create the database b. Create the two identified tables 2. Refer to the steps shown in C.1 Create a database and two tables. www.ppk.kpm.my < 20 >
  • 22. Learning Module: Information Systems SUBTOPIC: 6.3.2 Develop a Database Project C. IMPLEMENTATION PHASE LEARNING OUTCOMES: You should be able to: 6.3.2.7 build a relationship between the two tables. 6.3.2.8 enter data into the tables. DURATION: 4 periods C.2) Build a relationship between the two tables You need to build a relationship between the two tables from the Implementation Phase of C.1. Carefully follow the steps in this module. 1. Click Start button, then click Programs. Click Microsoft Office and select Microsoft Access 2000/2003 (Figure 1). Figure 1: Opening Microsoft Access www.ppk.kpm.my < 21 >
  • 23. Learning Module: Information Systems 2. Click File and then Open. (Figure 2) Figure 2: Opening a database 3. Click PERSONAL PHONEBOOK database and click Open button. Figure 3: Selecting the database www.ppk.kpm.my < 22 >
  • 24. Learning Module: Information Systems 4. Click Tools from the Menu bar and select Relationships (Figure 4). Figure 4: Selecting relationship tables 5. Click Show Table icon . From the list displayed, select the FRIEND_INFO table. Click Add button. Figure 5: Selecting FRIEND_INFO table www.ppk.kpm.my < 23 >
  • 25. Learning Module: Information Systems 6. Select PHONE_NUM table and click Add button. Then click Close button. Figure 6: Selecting PHONE_NUM table *Notice that Microsoft Access will automatically detect the common field name for both tables, FriendID, which is the primary key for table FRIEND_INFO. 7. Click Relationships and then choose Edit Relationships. Next select FRIEND_INFO table. Tick Enforce Referential Integrity then click Create button. Figure 7: Setting the relationship www.ppk.kpm.my < 24 >
  • 26. Learning Module: Information Systems 8. Figure 8 shows the relationship between FRIEND_INFO and PHONE_NUM (Join type: One-to-Many) Figure 8: Graphic representation of the relationship 9. Click File and then Close. C.3) Enter data into tables 10. Click the Tables tab and double click FRIEND_INFO table. Figure 9: Selecting FRIEND_INFO table www.ppk.kpm.my < 25 >
  • 27. Learning Module: Information Systems 11. Fill all the data given in Figure 10 into the FRIEND_INFO table. After entering all the data, click File and then Close. Figure 10: Data for FRIEND_INFO table 12. Click the Tables tab and double click PHONE_NUM table. Figure 11: Selecting PHONE_NUM table www.ppk.kpm.my < 26 >
  • 28. Learning Module: Information Systems 13. Next, fill all the data given in Figure 12 into the PHONE_NUM table. After entering all the data, click File and then Close. Figure 12: Data for PHONE_NUM table 14. Click File and then Exit to end this activity. ACTIVITY 4: DO IT YOURSELF INSTRUCTIONS: 1. Refer to Activity 3 to continue these tasks for Project Situation: a. Build a relationship between two tables. b. Enter your own data in the fields. 2. Refer to the steps shown in C.2 Build a relationship between the two tables. www.ppk.kpm.my < 27 >
  • 29. Learning Module: Information Systems SUBTOPIC: 6.3.2 Develop a database project D. TESTING LEARNING OUTCOMES: You should be able to: 6.3.2.9 create a form that is related to the tables. 6.3.2.10 create a query to retrieve required information with one or more conditions. 6.3.2.11 generate a report. DURATION: 4 periods Form, Query and Report From the database and tables created, we can do test retrieval of the data entered using forms, queries, and reports. www.ppk.kpm.my < 28 >
  • 30. Learning Module: Information Systems D.1) Creating forms For this activity, you will create a form and a query based on the Implementation Phase. After that, you will generate a report regarding your database. 1. Click Start button, and then All Programs. Click Microsoft Office and select Microsoft Access 2000/2003 (Figure 1). Figure 1: Opening Microsoft Access www.ppk.kpm.my < 29 >
  • 31. Learning Module: Information Systems 2. Click File and then Open. (Figure 2) Figure 2: Opening database 3. Click PERSONAL PHONEBOOK and click Open button. (Figure 3) Figure 3: Opening PERSONAL PHONEBOOK database www.ppk.kpm.my < 30 >
  • 32. Learning Module: Information Systems 4. Click the Forms tab then select Create form by using wizard. The following Form Wizard screen will appear. Then choose FRIEND_INFO table and move all the fields in the Available Fields section into the Selected Fields section by using this icon . Click Next. Figure 4: Selecting fields in FRIEND_INFO table 5. Choose any layout given and then click Next. Figure 5: Selecting layout www.ppk.kpm.my < 31 >
  • 33. Learning Module: Information Systems 6. Choose any style given and click Next. Figure 6: Selecting style 7. Type PERSONAL PHONEBOOK for your form title. Then click Finish. Figure 7: Naming the form www.ppk.kpm.my < 32 >
  • 34. Learning Module: Information Systems 8. Figure 8 as shown below will appear. Figure 8: Data is displayed in form 9. Notice that there are many layouts and styles you can choose to view your data. You may experiment with the different layouts and styles. D.2) Creating query Microsoft Access will also allow you to view data using queries. 10. Click the Queries tab. Select Create query by using wizard. Figure 9: Creating query www.ppk.kpm.my < 33 >
  • 35. Learning Module: Information Systems 11. Choose FRIEND_INFO table, move all fields in the Available Fields section by using this icon into the Selected Fields section. Then click Next. Figure 10: Selecting fields from FRIEND_INFO table www.ppk.kpm.my < 34 >
  • 36. Learning Module: Information Systems 12. Choose PHONE_NUM table, then move Phone_Number field in the Available Fields section into the Selected Fields section using this icon. Click Next. Figure 11: Selecting fields from PHONE_NUM table 13. Type MY PHONEBOOK for your query title. Then click Finish. Figure 12: Naming query www.ppk.kpm.my < 35 >
  • 37. Learning Module: Information Systems 14. Data in query as shown in Figure 13 will appear. Figure 13: Display of data in query MY PHONEBOOK 15. Click File and then choose Close. D.3) Generate report Notice that in the above query, there are repetitions of data for FriendID, name, address, and Date_of_Birth because your friends have more than one phone numbers. Each record has a different phone number. Your view of data can be better organized using reports. 16. Click the Reports tab. Choose Create report by using wizard. Figure 14: Generate report www.ppk.kpm.my < 36 >
  • 38. Learning Module: Information Systems 17. Choose Query: MY PHONEBOOK and move all fields in the Available Fields into Selected Fields section using this icon . Click Next. Query: MY PHONEBOOK Figure 15: Selecting fields 18. Choose which view you want for your data. Click Next. Figure 16: Selecting view www.ppk.kpm.my < 37 >
  • 39. Learning Module: Information Systems 19. You will be prompted whether to group your data. Click Next. Figure 17: Grouping data 20. You will be asked how you want data to be displayed in the report. Click Next. Figure 18: Sorting data www.ppk.kpm.my < 38 >
  • 40. Learning Module: Information Systems 21. Choose a layout for your report and then click Next. (You can choose any layout available) Figure 19: Choosing report layout 22. Choose any style for your report and then click Next. Figures 20: Choosing style for report www.ppk.kpm.my < 39 >
  • 41. Learning Module: Information Systems 23. Type PHONEBOOK for your report title. Then click Finish. Figures 21: Naming the report PHONEBOOK 24. Data is displayed as shown in Figure 22. Figure 22: Data is displayed in the report PHONEBOOK 25. Click File and finally choose Exit to end this activity. www.ppk.kpm.my < 40 >
  • 42. Learning Module: Information Systems ACTIVITY 5: DO IT YOURSELF Instructions: Refer to Activity 4 and do the following tasks: 1. Create a form which is related to tables. 2. Create a query to retrieve required information. 3. Generate a report. www.ppk.kpm.my < 41 >
  • 43. Learning Module: Information Systems SUBTOPIC: 6.3.2 Develop a Database Project LEARNING OUTCOME: You should be able to: 6.3.2.12 gather all the documents from the above phases into a folio. DURATION: 2 periods ACTIVITY 6: DO IT YOURSELF Instructions: 1. All documents resulting from Activities 1 to 5 must be compiled into a folio. 2. Arrange your documents according to the following format: a. Project title b. Project background c. Analysis phase d. Design phase e. Implementation phase f. Testing phase www.ppk.kpm.my < 42 >