Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Database Relasional Rinto Exandi 08271063

Database Relasional Rinto Exandi 08271063

Ratings:

5.0

(2)
|Views: 143|Likes:
Published by mysuse

More info:

Published by: mysuse on Feb 09, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

11/04/2012

 
TUGAS MATA KULIAHPEMROGRAMAN CLIENT SERVER
DATABASE RELASIONAL
Disusun Oleh:
Nama NPMRinto Exandi Sinaga 08271063
JURUSAN SISTEM INFORMASI
SEKOLAH TINGGI TEKNIK HARAPAN
 
DATABASE RELASIONAL
Struktur database yang akan dibuat sebagai bahan proyek database relasional adalahsebagai berikut.Gambar Struktur Tabel dalam dabase “tokobuku”
Isi Tabel-tabel
mysql> select * from mstpengarang;+-------------+-----------------+---------+-----------+----------------------+| kdpengarang | nama | Alamat | notelp | email |+-------------+-----------------+---------+-----------+----------------------+| W01 | Todd Lamle | USA | 00000 | NA || W02 | Onno W Purbo | Jakarta | 021-00000 | onno@wasantara.net.i || W03 | Palmer Sinclair | USA | 00000 | NA || W04 | Lemay | USA | 00000 | NA || W05 | David A Vise | USA | 00000 | NA |+-------------+-----------------+---------+-----------+----------------------+5 rows in set (0.00 sec)
 
mysql> select kdpenerbit,namapenerbit,alamat,notelp from mstpenerbit;+------------+----------------------+---------+------------+| kdpenerbit | namapenerbit | alamat | notelp |+------------+----------------------+---------+------------+| P00 | Elex Media Komputind | Jakarta | 021-000000 || P02 | Gramedia | Jakarta | 021-000000 || P03 | Mc Graw Hill | USA | 0000000 || P04 | Sams Publishing | USA | 0000000 |+------------+----------------------+---------+------------+4 rows in set (0.00 sec)mysql> select * from tbloperator;+------------+--------------+-----------+----------+| kdoperator | namaoperator | namalogin | password |+------------+--------------+-----------+----------+| OP1 | Rinto Exandi | rinto | 12345 || OP2 | Memet | memet | ganteng |+------------+--------------+-----------+----------+2 rows in set (0.00 sec)mysql> select isbn,judul,kdpengarang,kdpenerbit from masterbuku;+-------+-------------------------------------+-------------+------------+| isbn | judul | kdpengarang | kdpenerbit |+-------+-------------------------------------+-------------+------------+| 10001 | Sams Teach Yourself Perl in 21 days | W04 | P02 || 10002 | CCNA Study Guider | W01 | P00 || 10003 | Design and Implementing LAN and WAN | W03 | P03 || 10004 | PHP4 untuk pemula | W02 | P02 || 10005 | Kisah Sukses Google | W05 | P02 |+-------+-------------------------------------+-------------+------------+5 rows in set (0.00 sec)mysql> select * from trjualbuku;+-------------+---------------------+------------+| kdpenjualan | tanggal | kdoperator |+-------------+---------------------+------------+| BN001 | 2008-02-01 00:00:00 | OP1 || BN002 | 2008-02-02 00:00:00 | OP1 || BN003 | 2008-02-03 00:00:00 | OP2 || BN004 | 2008-02-03 00:00:00 | OP2 || BN005 | 2008-02-04 00:00:00 | OP1 |+-------------+---------------------+------------+5 rows in set (0.00 sec)mysql> select * from trjualbukudetail;+-------------+-------+--------+| kdpenjualan | isbn | jumlah |+-------------+-------+--------+| BN001 | 10001 | 1 || BN001 | 10002 | 1 || BN002 | 10002 | 1 || BN003 | 10003 | 2 || BN003 | 10002 | 1 || BN004 | 10001 | 2 || BN005 | 10001 | 1 || BN005 | 10001 | 1 || BN005 | 10002 | 1 |+-------------+-------+--------+9 rows in set (0.00 sec)
Dalam prakteknya, relasi database dapat dilihat dari SQL Query yang dijalankan.
1.
 
INNER JOIN
Inner join digunakan untuk menggabungkan dua atau lebih table yang memilikielemen yang sama.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->