SlideShare a Scribd company logo
1 of 5
Dengan ini saya buat tugas basis data sederhana.
Oleh :
       Nama        : IGusti Made Arya Wiraantara
       Nim         : 007 01 138
       Semester    : Tiga ( III )
       Mata Kuliah : Basis Data

                RANCANGAN DESAIN DATABASE PENJUALAN
                   “TOKO KOMPUTER ARYA PUSTAKA”
                 DENGAN TEKNIK PERANCANGAN FORMAL

1. Entity/ Entitas.

   •   Castomer
       - id customer
       - alamat_customer
       - telepon_customer
       - Nama customer

   •   Barang
       - Kode barang
       - Nama barang
       - Id jenis barang
       - id_supplier
       - harga


   •   Jenis_Barang
       - id_jenis_barang
       - nama_jenis_barang


   •   Transaksi
       -   Transaksi
       -   id_customer
       -   kode_barang
       -   tgl_transaksi
       -   keterangan

   •   Supplier
       - id_supplier
       - nama_supplier




                                       1
Entitas / Tabel yang dibutuhkan :
   - Entitas / Tabel Customer
   - Entitas / Tabel Barang
   - Entitas / Tabel Jenis_Barang
   - Entitas / Tabel Transaksi
   - Entitas / Tabel Supplier

Atribut yang dibutuhkan :
Tabel Customer
Atribut             Type
id_customer         numerik ( 6 ), unik tidak
                    boleh ada yang sama
nama_customer       text ( 50 )
alamat_customer     text ( 100 )
telepon_customer    text ( 20 )

Tabel Barang
Atribut               Type
kode_barang           text ( 6 ), unik tidak boleh
                      ada yang sama
nama_barang           text ( 100 )
id_jenis_barang       numerik ( 6 )
id_supplier           numerik ( 6 )
harga                 text ( 15 )

Tabel Jenis_Barang
Atribut            Type
id_jenis_barang    numerik (6 )
nama_jenis_barang  text ( 100 )

Tabel Transaksi
Atribut               Type
kode_transaksi        text ( 6 ), unik tidak boleh
                      ada yang sama
id_customer           numerik ( 6 )
kode_barang           text ( 6 )
tgl_transaksi         datetime
keterangan            text ( 255 )

Tabel Supplier
Atribut               Type
id_supplier           numerik (6 )
nama_supplier         text ( 100 )




                                            1
Entity Relationship Diagram ( ERD )


                                                                                         Nama_               Id_jeni
                                                            Kode                         Barng               s_bara              Id_supplie
                                                            Transaksi                                        ng                  r

                                                kode_bar                     Id_cost                                      harg
   id_cust             Nama_cust
                                                                             m                   Kode_B
                                                                                                 arang
                                    1                                                        N
               Customer                                     Membe                                           Barang

                                                                                                            N
almt_                  telp_custm                                                       Id_jenis                            Jenis_baran
custm                                                                   Ke              _barang
                                                Tgl_
                                                transaksi

                                                                                                            Memilik
                                                                                                            i
                                                                                                                          Nama_su
                                                                                       id_supplaierr                      pplaierr

                                                                                                             1

                                                                                                            supplier

             Model Relasi Antar Tabel

              Tabel Customer                                              Tabel Barang
                               1                                    1
             id_customer *                                              kode_barang *
             nama_customer                                              nama_barang
                                                                    N
             alamat_customer                                            id_jenis_barang **       N
             telepon_custmer                                            id_supplier **
                                                                        harga
                                        Tabel Transaksi                                                  Tabel Supplier

                                   N kode_transaksi *                                                1
                                                                                                         id_supplier *
                                     id_customer **         N                                            nama_supplier
                                     kode_barang **
                                     tgl_transaksi
                                     keterangan
                                                                        Tabel Jenis_Barang
                                                                    1
                                                                        id_jenis_barang *
                                                                        nama_jenis_barang


             * Primary Key
             ** Foreign Key


                                                                1
Contoh Record Data Customer
id_customer nama_customer       alamat_custome      telepon_customer
                                r
100001        Imiadi            Jl Buntu 20         0341-123456
                                Malang
100002        Sumiarta          Jl Gantung 10       031-4567890
                                Surabaya


Contoh Record Data Barang
kode_baran nama_barang          id_jenis_barang     id_supplier         harga
g
01-0001      Printer Canon IP   1                   1                    450.000
             1700
05-0003      Harddisk Maxtor    2                   2                    390.000
             60 GB
06-0022      Notebook Acer      3                   3                   8.000.000
             TravelMate


Contoh Record Data Jenis Barang
id_jenis_barang   nama_jenis_barang
1                 Printer
2                 Hardisk
3                 Notebook

Contoh Record Data Transaksi
kode_transaksi id_customer            kode_barang       tgl_transaksi     keterangan
T00001          100001                01-0001             2007-03-27      DP 50%, bayar Rp
                                                                          225.000
T00002           100001               06-0022            2007-03-27       Bayar Lunas
T00003           100002               01-0001            2007-03-27       Kurang 100.000
T00004           100002               05-0003            2007-03-28       Bayar Lunas


Contoh Record Data Supplier
id_supplier       nama_supplier
1                 PT Canon Indonesia
2                 PT Maxtorindo
3                 PT Acer Internasional




                                          1
Output Report / Laporan

Nota Penjualan Barang “ TOKO KOMPUTER ARYA PUSTAKA”
Diberikan kepada :
Nama           : Imiadi
Alamat         : Jl Buntu 20 Malang
Telepon        : 0341-123456
Tgl. Transaksi : 2007-03-27

kode_barang   nama_barang        jenis_barang    harga
01-0001       Printer Canon IP   Printer           450.000
              1700
06-0022       Notebook Acer      Notebook        8.000.000
              TravelMate
                                 Total ( Rp. )   8.450.000



Nota Penjualan Barang “ TOKO KOMPUTER ARYA PUSTAKA”
Diberikan kepada :
Nama           : Sumiarta
Alamat         : Jl Gantung 10 Surabaya
Telepon        : 031-4567890
Tgl. Transaksi : 2007-03-28

kode_barang   nama_barang        jenis_barang    harga
05-0003       Harddisk Maxtor    Harddisk          390.000
              60 GB
                                 Total ( Rp. )    390.000




                                         1

More Related Content

Featured

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
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

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...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

RANCANGAN DATABASE

  • 1. Dengan ini saya buat tugas basis data sederhana. Oleh : Nama : IGusti Made Arya Wiraantara Nim : 007 01 138 Semester : Tiga ( III ) Mata Kuliah : Basis Data RANCANGAN DESAIN DATABASE PENJUALAN “TOKO KOMPUTER ARYA PUSTAKA” DENGAN TEKNIK PERANCANGAN FORMAL 1. Entity/ Entitas. • Castomer - id customer - alamat_customer - telepon_customer - Nama customer • Barang - Kode barang - Nama barang - Id jenis barang - id_supplier - harga • Jenis_Barang - id_jenis_barang - nama_jenis_barang • Transaksi - Transaksi - id_customer - kode_barang - tgl_transaksi - keterangan • Supplier - id_supplier - nama_supplier 1
  • 2. Entitas / Tabel yang dibutuhkan : - Entitas / Tabel Customer - Entitas / Tabel Barang - Entitas / Tabel Jenis_Barang - Entitas / Tabel Transaksi - Entitas / Tabel Supplier Atribut yang dibutuhkan : Tabel Customer Atribut Type id_customer numerik ( 6 ), unik tidak boleh ada yang sama nama_customer text ( 50 ) alamat_customer text ( 100 ) telepon_customer text ( 20 ) Tabel Barang Atribut Type kode_barang text ( 6 ), unik tidak boleh ada yang sama nama_barang text ( 100 ) id_jenis_barang numerik ( 6 ) id_supplier numerik ( 6 ) harga text ( 15 ) Tabel Jenis_Barang Atribut Type id_jenis_barang numerik (6 ) nama_jenis_barang text ( 100 ) Tabel Transaksi Atribut Type kode_transaksi text ( 6 ), unik tidak boleh ada yang sama id_customer numerik ( 6 ) kode_barang text ( 6 ) tgl_transaksi datetime keterangan text ( 255 ) Tabel Supplier Atribut Type id_supplier numerik (6 ) nama_supplier text ( 100 ) 1
  • 3. Entity Relationship Diagram ( ERD ) Nama_ Id_jeni Kode Barng s_bara Id_supplie Transaksi ng r kode_bar Id_cost harg id_cust Nama_cust m Kode_B arang 1 N Customer Membe Barang N almt_ telp_custm Id_jenis Jenis_baran custm Ke _barang Tgl_ transaksi Memilik i Nama_su id_supplaierr pplaierr 1 supplier Model Relasi Antar Tabel Tabel Customer Tabel Barang 1 1 id_customer * kode_barang * nama_customer nama_barang N alamat_customer id_jenis_barang ** N telepon_custmer id_supplier ** harga Tabel Transaksi Tabel Supplier N kode_transaksi * 1 id_supplier * id_customer ** N nama_supplier kode_barang ** tgl_transaksi keterangan Tabel Jenis_Barang 1 id_jenis_barang * nama_jenis_barang * Primary Key ** Foreign Key 1
  • 4. Contoh Record Data Customer id_customer nama_customer alamat_custome telepon_customer r 100001 Imiadi Jl Buntu 20 0341-123456 Malang 100002 Sumiarta Jl Gantung 10 031-4567890 Surabaya Contoh Record Data Barang kode_baran nama_barang id_jenis_barang id_supplier harga g 01-0001 Printer Canon IP 1 1 450.000 1700 05-0003 Harddisk Maxtor 2 2 390.000 60 GB 06-0022 Notebook Acer 3 3 8.000.000 TravelMate Contoh Record Data Jenis Barang id_jenis_barang nama_jenis_barang 1 Printer 2 Hardisk 3 Notebook Contoh Record Data Transaksi kode_transaksi id_customer kode_barang tgl_transaksi keterangan T00001 100001 01-0001 2007-03-27 DP 50%, bayar Rp 225.000 T00002 100001 06-0022 2007-03-27 Bayar Lunas T00003 100002 01-0001 2007-03-27 Kurang 100.000 T00004 100002 05-0003 2007-03-28 Bayar Lunas Contoh Record Data Supplier id_supplier nama_supplier 1 PT Canon Indonesia 2 PT Maxtorindo 3 PT Acer Internasional 1
  • 5. Output Report / Laporan Nota Penjualan Barang “ TOKO KOMPUTER ARYA PUSTAKA” Diberikan kepada : Nama : Imiadi Alamat : Jl Buntu 20 Malang Telepon : 0341-123456 Tgl. Transaksi : 2007-03-27 kode_barang nama_barang jenis_barang harga 01-0001 Printer Canon IP Printer 450.000 1700 06-0022 Notebook Acer Notebook 8.000.000 TravelMate Total ( Rp. ) 8.450.000 Nota Penjualan Barang “ TOKO KOMPUTER ARYA PUSTAKA” Diberikan kepada : Nama : Sumiarta Alamat : Jl Gantung 10 Surabaya Telepon : 031-4567890 Tgl. Transaksi : 2007-03-28 kode_barang nama_barang jenis_barang harga 05-0003 Harddisk Maxtor Harddisk 390.000 60 GB Total ( Rp. ) 390.000 1