SlideShare una empresa de Scribd logo
1 de 24
SKS 3094           SKS 3094



           BAB 2


           TABLE
SKS 3094                                                       SKS 3094

                 BAB 2: TABLE
    OBJEKTIF PEMBELAJARAN         CLO (COURSE LEARNING OUTCOME)

                 Memahami Perhubungan (Relationship)
                 Membina jadual
                     Membina jadual menggunakan jadual Wizard
                              perhubungan antara Table
                     Menetapkan jenis-jenis perhubungan View
                     Membina jadual menggunakan Designjadual
                     Mengubahsuai jadual menggunakan Design View
                 Memahami Pengurusan Rekod
                     Memasukkan rekod
                 Pengenalan kepada Jenis Data
                     Menyemak rekod menggunakan Datasheet View
                     Mengenal pasti jenis data
                     Mengesan rekod menggunakan Find dan Filter
                     Membina Primary Key
                     Mengubahsuai Rekod
PENGENALAN
• Ms Access 2010 terdiri daripada 4 objek utama
  iaitu: tables, queries, forms dan reports.
Pengenalan TABLE


                 TABLE
• Semua data di simpan di dalam tables.
• Tables ibarat hati kepada pangkalan data.
Pengenalan TABLE

• Tables terdiri daripada column dan row
Pengenalan TABLE

Namun dalam Access, rows dan columns dirujuk
sebagai Records dan Fields.
TABLE - field


field
TABLE - field


  • Field – merangkumi kumpulan maklumat
            daripada jenis data yang sama.



Semua                                        Semua
maklumat                                     maklumat
mengenai                                     mengenai
nama                                         alamat
TABLE - field




Boleh mencapai 64 karakter.

Boleh mengandungi kombinasi huruf, angka, jarak.


Tidak boleh – titik (.), tanda seru (!), tanda soal(?)
TABLE - record


                record
• Record merupakan satu unit maklumat.
• Setiap cell pada row tersebut merupakan
  sebahagian daripada record.
TABLE - record

• Setiap record spans beberapa fields.
• ID number digunakan untuk mengenalpasti
  setiap record. Ia merujuk kepada semua
  maklumat yang terdapat pada sesuatu row.
JENIS –JENIS DATA
       Jenis data                             Keterangan
Text                 Data berbentuk alfanumerik, mencapai sehingga 255 karakter.
Memo                 Data berbentuk alfanumerik yang berjumlah lebih besar.
                     Membenarkan rich-text format (fonts pelbagai jenis dan saiz ,
                     bold, italic, dll.)
Number               Data berbentuk nombor.
Date/Time            Data berbentuk tarikh dan masa.
Currency             Data berbentuk mata wang.
AutoNumber           Nombor bilangan kenaikan secara automatik.
                     Selalu digunakan sebagai Primary Key.
Yes/No               Yes – 1, No – 0 (digunakan pada check box atau drop-down list)
OLE Object           Data berbentuk gambar, suara,video dll yang disisipkan
                     ke dalam table menggunakan teknologi OLE (Object Linking and
                     Embedding). **elok dihindari kerana sering bermasalah.
Hyperlink            Link ke lokasi internet tertentu URL, alamat e-mail, atau path
                     suatu file.
Attachment           Pilihan lain kepada penggunaan OLE Objects
PROPERTIES FIELD
  Properties                                  Kegunaan
Field Size      Menentukan kepanjangan sesuatu medan.
Format          Merujuk kepada format atau bentuk paparan sesuatu medan. Sebagai
                contoh bentuk paparan bagi tarikh adalah seperti dd-mm-yy,dd-mm-
                yyyy dan sebagainya.
Input Mask      Menyediakan acuan untuk kemasukan data. Dalam hal ini boleh
                disetkan jenis data yang diperlukan.
Decimal Places Menetapkan bilangan titik perpuluhan ( Number/Currency sahaja).
Caption         Label yang digunakan dalam medan-medan form dan report
                ( menukarkan nama medan).
Default Value   Nilai medan yang wujud secara automatik apabila rekod baru hendak
                dimasukan.
PROPERTIES FIELD
    Properties                                 Kegunaan
Validation Rule     Mengesahkan data berdasarkan kepada syarat yang ditetapkan
                    dalam ‘expressions’ atau macros.
Validation Text     Paparkan utusan tertentu apabila nilai medan tidak memenuhi
                    syarat di dalam Validation Rule.
Reqiured            Menentukan samada nilai mesti diisikan ke dalam medan.
Allow Zero Length   Medan berkenaan samada dibiarkan kosong atau tidak boleh
                    dibiarkan kosong.
Indexed             Mengindex data untuk mempercepatkan proses carian.
FIELD SIZE
• Digunakan untuk jenis data - Text, Number
  dan AutoNumber.
• Field size bagi bagi number adalah :
 Setting Saiz Medan                     Julat                 Bil. Perpuluhan


 Byte                 0 Hingga 255                           Tiada
 Integer              -32,768 hingga 32,767                  Tiada
 Long Integer         - 2,147,483,648 hingga 2,147,483,647   Tiada
 Single               -3.402823E38 hingga 3.402823E38        15
 Double               - 1.797E308 hingga 1.797E308           7
PROPERTY FORMAT
• Format mengawal bentuk paparan data.
• Ia akan memberi kesan selepas data
  dimasukkan ke dalam jadual/form.
• Format untuk jenis data text & memo:

     Format                           Catatan
       @      Memerlukan bentuk teks ( Aksara atau ruang kosong)

       &      Aksara teks tidak dikehendaki
       <      Semua aksara menjadi huruf kecil
       >      Semua aksara menjadi huruf besar
• Format untuk number dan Currency
   Jenis Format    Definisi Format          Input       Paparan


General           ######.###         987654.321     987654.321


Currency          $###,##0.00        987654.321     $987,654.321


Fixed             ######.###         987654.321     987654.321


Standard          ###,###.###        987654.321     987,654.321


Percent           ###.##%            .987           98.7%


Scientific        #.####E+00         987654.321     987654321E+03
CONTOH
            Format                    Bentuk Input                Paparan

>                              Farhan Akmal          FARHAN AKMAL

#,##0;(#,##0) “-0-“ ; ”None”   15-15 0 No Data       15(15) – 0 - None

Currency                       12345.67              $12,345.67

“No KP” 0000                   5374                  No KP 5374

Mmm yy                         9/11/93               Sep 93

Long Date                      9/11/93               Friday, Deptember 11, 1993
PROPERTY INPUT MASK
• Merangkumi data jenis Text, Number,
  Date/Time dan Currency.
• Input Mask boleh dicipta dengan
  menggunakan aksara-aksara berikut:
   Aksara                               Kesannya
     0      Digit 0 – 9, kemasukan perlu, tanda [+] dan [-] tidak dibenarkan


     9      Digit atau ruang kosong, kemasukan tidak perlu, tanda [+] dan [-]
            tidak dibenarkan.
     #      Digit atau ruang kosong, ruang kosong dipaparkan sebagai
            ‘blanks’ , tetapi ‘blanks’ dibuang apabila data di ’save’, tanda [+]
            dan [-]dibenarkan.
PROPERTY INPUT MASK
Aksara                                Kesannya
  L      Huruf A – Z, kemasukan perlu
  ?      Huruf A – Z, kemasukan tidak perlu
  A      Huruf atau digit, kemasukan perlu
  a      Huruf atau digit, kemasukan tidak perlu
  &      Aksara atau ruang kosong, kemasukan perlu
  C      Aksara atau ruang kosong, kemasukan tidak perlu
  <      Aksara menjadi huruf kecil
  >      Aksara menjadi huruf besar
  !      Nilai input dimasukkan dari kanan ke kiri
        Aksara selepas tanda “” akan dipaparkan seperti yang ditaipkan.
         Contoh: A dipapar sebagai A.
CONTOH
       Input Mask            Contoh Paparan Input
(000) 000 – 0000     (206)555-0248
(999) 999-9999       ( 04)917-860
(000) AAA-AAAA       (206) 555-TELE
#999                 -29
>L????L?000L0        GREENGR339M3
>L0L 0L0             T2F 8M4
00000-9999           98115-
>L<??????????????    Maria
SSN 000-00-0000      SSN 555-55-55555
>LL00000-0000        DB51392-0493
Penat menyalin nota…..?
     Ish…Ish…Ish…
    Kasihannyer…..
      Coobaann….
Tidak!!!! Rasa lebih
  bersemangat….

Más contenido relacionado

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Nota slide topik 2 bahagian 1

  • 1. SKS 3094 SKS 3094 BAB 2 TABLE
  • 2. SKS 3094 SKS 3094 BAB 2: TABLE OBJEKTIF PEMBELAJARAN CLO (COURSE LEARNING OUTCOME) Memahami Perhubungan (Relationship) Membina jadual Membina jadual menggunakan jadual Wizard perhubungan antara Table Menetapkan jenis-jenis perhubungan View Membina jadual menggunakan Designjadual Mengubahsuai jadual menggunakan Design View Memahami Pengurusan Rekod Memasukkan rekod Pengenalan kepada Jenis Data Menyemak rekod menggunakan Datasheet View Mengenal pasti jenis data Mengesan rekod menggunakan Find dan Filter Membina Primary Key Mengubahsuai Rekod
  • 3. PENGENALAN • Ms Access 2010 terdiri daripada 4 objek utama iaitu: tables, queries, forms dan reports.
  • 4. Pengenalan TABLE TABLE • Semua data di simpan di dalam tables. • Tables ibarat hati kepada pangkalan data.
  • 5. Pengenalan TABLE • Tables terdiri daripada column dan row
  • 6. Pengenalan TABLE Namun dalam Access, rows dan columns dirujuk sebagai Records dan Fields.
  • 8. TABLE - field • Field – merangkumi kumpulan maklumat daripada jenis data yang sama. Semua Semua maklumat maklumat mengenai mengenai nama alamat
  • 9. TABLE - field Boleh mencapai 64 karakter. Boleh mengandungi kombinasi huruf, angka, jarak. Tidak boleh – titik (.), tanda seru (!), tanda soal(?)
  • 10. TABLE - record record • Record merupakan satu unit maklumat. • Setiap cell pada row tersebut merupakan sebahagian daripada record.
  • 11. TABLE - record • Setiap record spans beberapa fields. • ID number digunakan untuk mengenalpasti setiap record. Ia merujuk kepada semua maklumat yang terdapat pada sesuatu row.
  • 12.
  • 13. JENIS –JENIS DATA Jenis data Keterangan Text Data berbentuk alfanumerik, mencapai sehingga 255 karakter. Memo Data berbentuk alfanumerik yang berjumlah lebih besar. Membenarkan rich-text format (fonts pelbagai jenis dan saiz , bold, italic, dll.) Number Data berbentuk nombor. Date/Time Data berbentuk tarikh dan masa. Currency Data berbentuk mata wang. AutoNumber Nombor bilangan kenaikan secara automatik. Selalu digunakan sebagai Primary Key. Yes/No Yes – 1, No – 0 (digunakan pada check box atau drop-down list) OLE Object Data berbentuk gambar, suara,video dll yang disisipkan ke dalam table menggunakan teknologi OLE (Object Linking and Embedding). **elok dihindari kerana sering bermasalah. Hyperlink Link ke lokasi internet tertentu URL, alamat e-mail, atau path suatu file. Attachment Pilihan lain kepada penggunaan OLE Objects
  • 14. PROPERTIES FIELD Properties Kegunaan Field Size Menentukan kepanjangan sesuatu medan. Format Merujuk kepada format atau bentuk paparan sesuatu medan. Sebagai contoh bentuk paparan bagi tarikh adalah seperti dd-mm-yy,dd-mm- yyyy dan sebagainya. Input Mask Menyediakan acuan untuk kemasukan data. Dalam hal ini boleh disetkan jenis data yang diperlukan. Decimal Places Menetapkan bilangan titik perpuluhan ( Number/Currency sahaja). Caption Label yang digunakan dalam medan-medan form dan report ( menukarkan nama medan). Default Value Nilai medan yang wujud secara automatik apabila rekod baru hendak dimasukan.
  • 15. PROPERTIES FIELD Properties Kegunaan Validation Rule Mengesahkan data berdasarkan kepada syarat yang ditetapkan dalam ‘expressions’ atau macros. Validation Text Paparkan utusan tertentu apabila nilai medan tidak memenuhi syarat di dalam Validation Rule. Reqiured Menentukan samada nilai mesti diisikan ke dalam medan. Allow Zero Length Medan berkenaan samada dibiarkan kosong atau tidak boleh dibiarkan kosong. Indexed Mengindex data untuk mempercepatkan proses carian.
  • 16. FIELD SIZE • Digunakan untuk jenis data - Text, Number dan AutoNumber. • Field size bagi bagi number adalah : Setting Saiz Medan Julat Bil. Perpuluhan Byte 0 Hingga 255 Tiada Integer -32,768 hingga 32,767 Tiada Long Integer - 2,147,483,648 hingga 2,147,483,647 Tiada Single -3.402823E38 hingga 3.402823E38 15 Double - 1.797E308 hingga 1.797E308 7
  • 17. PROPERTY FORMAT • Format mengawal bentuk paparan data. • Ia akan memberi kesan selepas data dimasukkan ke dalam jadual/form. • Format untuk jenis data text & memo: Format Catatan @ Memerlukan bentuk teks ( Aksara atau ruang kosong) & Aksara teks tidak dikehendaki < Semua aksara menjadi huruf kecil > Semua aksara menjadi huruf besar
  • 18. • Format untuk number dan Currency Jenis Format Definisi Format Input Paparan General ######.### 987654.321 987654.321 Currency $###,##0.00 987654.321 $987,654.321 Fixed ######.### 987654.321 987654.321 Standard ###,###.### 987654.321 987,654.321 Percent ###.##% .987 98.7% Scientific #.####E+00 987654.321 987654321E+03
  • 19. CONTOH Format Bentuk Input Paparan > Farhan Akmal FARHAN AKMAL #,##0;(#,##0) “-0-“ ; ”None” 15-15 0 No Data 15(15) – 0 - None Currency 12345.67 $12,345.67 “No KP” 0000 5374 No KP 5374 Mmm yy 9/11/93 Sep 93 Long Date 9/11/93 Friday, Deptember 11, 1993
  • 20. PROPERTY INPUT MASK • Merangkumi data jenis Text, Number, Date/Time dan Currency. • Input Mask boleh dicipta dengan menggunakan aksara-aksara berikut: Aksara Kesannya 0 Digit 0 – 9, kemasukan perlu, tanda [+] dan [-] tidak dibenarkan 9 Digit atau ruang kosong, kemasukan tidak perlu, tanda [+] dan [-] tidak dibenarkan. # Digit atau ruang kosong, ruang kosong dipaparkan sebagai ‘blanks’ , tetapi ‘blanks’ dibuang apabila data di ’save’, tanda [+] dan [-]dibenarkan.
  • 21. PROPERTY INPUT MASK Aksara Kesannya L Huruf A – Z, kemasukan perlu ? Huruf A – Z, kemasukan tidak perlu A Huruf atau digit, kemasukan perlu a Huruf atau digit, kemasukan tidak perlu & Aksara atau ruang kosong, kemasukan perlu C Aksara atau ruang kosong, kemasukan tidak perlu < Aksara menjadi huruf kecil > Aksara menjadi huruf besar ! Nilai input dimasukkan dari kanan ke kiri Aksara selepas tanda “” akan dipaparkan seperti yang ditaipkan. Contoh: A dipapar sebagai A.
  • 22. CONTOH Input Mask Contoh Paparan Input (000) 000 – 0000 (206)555-0248 (999) 999-9999 ( 04)917-860 (000) AAA-AAAA (206) 555-TELE #999 -29 >L????L?000L0 GREENGR339M3 >L0L 0L0 T2F 8M4 00000-9999 98115- >L<?????????????? Maria SSN 000-00-0000 SSN 555-55-55555 >LL00000-0000 DB51392-0493
  • 23. Penat menyalin nota…..? Ish…Ish…Ish… Kasihannyer….. Coobaann….
  • 24. Tidak!!!! Rasa lebih bersemangat….