P. 1
11008834_Firman

11008834_Firman

|Views: 1|Likes:
Published by Nurfaiz Ekosetio

More info:

Published by: Nurfaiz Ekosetio on May 27, 2013
Copyright:Attribution Non-commercial

Availability:

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

03/04/2015

pdf

text

original

Jawaban : No.

1

No.2

4 No.3 No.No. 5 .

9 . 6 No.No.8 No.

`nama_pegawai` varchar(50) collate latin1_general_ci NOT NULL. '2313112'. ('2'. 'Dian'). 'B2'). `id_blok` int(11) NOT NULL. CREATE TABLE `lokasi` ( `id_lokasi` int(11) NOT NULL. 'B1'). `status`. 1 CREATE TABLE `pegawai` ( `id_pegawai` int(11) NOT NULL. `id_blok`. 'Kosong'. 'UG'). 'Riska'). 'Penuh'. NO. '1'. `nama_lokasi` varchar(5) collate latin1_general_ci NOT NULL. '1526358'.2 update lokasi set status='Penuh' where nama_lokasi='B2'. '1'. `nip` varchar(10) collate latin1_general_ci NOT NULL. PRIMARY KEY (`id_lokasi`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci. '2'. ('4'. 3 CREATE TABLE `kendaraan` ( `id_kendaraan` int(11) NOT NULL.Script yang digunakan : NO. ('2'. INSERT INTO `pegawai` (`id_pegawai`. ('3'. `status` varchar(10) collate latin1_general_ci NOT NULL. . 'Penuh'. PRIMARY KEY (`id_pegawai`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci. 'Putri'). `nip`. `nama_pegawai`) VALUES ('1'. '1232121'. INSERT INTO `lokasi` (`id_lokasi`. `nama_lokasi`) VALUES ('1'. NO. 'Kosong'. 'B2'). ('3'. '2'.

PRIMARY KEY (`id_kendaraan`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci. `nama_jenis`. NO. 2. 'mobil'. `id_jenis`. (4. 'D 2513 JK'). `hargaperjam`) VALUE (1.`id_jenis` int(11) NOT NULL. 'AB 5625 GH'). 3.nama_jenis from kendaraan inner join jenis_kendaraan on kendaraan. (4. INSERT INTO `jenis_kendaraan` (`id_jenis`.id_jenis=jenis_kendaraan. CREATE TABLE `jenis_kendaraan` ( `id_jenis` int(11) NOT NULL. (2. PRIMARY KEY (`id_jenis`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci. `no_plat` varchar(50) collate latin1_general_ci NOT NULL.id_jenis. 'motor'. `wkt_masuk`. 1. `id_lokasi`. 'B 5489 WMV'). 2000). 'bis'. `id_lokasi` int(11) NOT NULL. INSERT INTO `parkir` (`id_parkir`. PRIMARY KEY (`id_parkir`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci. `wkt_keluar` datetime NOT NULL. `id_kendaraan` int(11) NOT NULL. 'D 4743 XY'). `id_pegawai`. 2. 'truk'. (3. `no_plat`) VALUES (1.no_plat. `id_pegawai` int(11) NOT NULL. select kendaraan. 2500). jenis_kendaraan. (3. `id_kendaraan`. 1. INSERT INTO `kendaraan` (`id_kendaraan`. 1000). `wkt_masuk` datetime NOT NULL. (2. `wkt_keluar`) VALUES . 'D 2325 BG'). `hargaperjam` int(11) NOT NULL. (5. `nama_jenis` varchar(50) collate latin1_general_ci NOT NULL. 4 CREATE TABLE `parkir` ( `id_parkir` int(11) NOT NULL. 3000).

'2013-11-07 14:00:00').no_plat. 4. 5. (3. 2.wkt_keluar from parkir inner join kendaraan on kendaraan.nama_blok. PRIMARY KEY (`id_blok`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci.id_lokasi inner join jenis_kendaraan on kendaraan. '2013-11-16 17:00:00'). count(kendaraan. 2. `kuota`) VALUES (1. (3. (2.id_kendaraan where time(wkt_keluar)>'13:00:00'. '2013-11-08 13:00:00'). 70). 4. '2013-11-08 12:00:00'.nama_lokasi. 'BLOK D'. (5. time(wkt_keluar) as jam_keluar from kendaraan inner join parkir on kendaraan. 1. 'BLOK B'. (6. jenis_kendaraan. 3. '2013-11-07 13:00:00'. 2. lokasi. 3. `nama_blok`. '2013-11-09 13:00:00'). select blok.no_plat.id_kendaraan=parkir. NO. 1. 2.id_lokasi=parkir. parkir. 5 select kendaraan.id_kendaraan) as jumlah_kendaraan from parkir . 1. 3. '2013-11-10 14:00:00'. '2013-11-10 16:00:00'). NO.id_kendaraan inner join lokasi on lokasi. 1. 6 CREATE TABLE `blok` ( `id_blok` int(11) NOT NULL. '2013-11-09 10:00:00'. 2. '2013-11-14 14:00:00'. 1. 1. 100).nama_jenis. '2013-11-09 15:00:00'). '2013-11-09 10:00:00'. 150). parkir. lokasi. (4. (2. select kendaraan.nama_lokasi. 'BLOK C'. (4.wkt_masuk.(1. `nama_blok` varchar(50) collate latin1_general_ci NOT NULL. INSERT INTO `blok` (`id_blok`.id_jenis. 2. `kuota` int(11) NOT NULL. 100). 'BLOK A'.id_kendaraan=parkir.id_jenis=jenis_kendaraan.

nama_blok asc.nama_pegawai.id_pegawai=pegawai.id_blok=blok.nama_lokasi order by blok.id_kendaraan=kendaraan.id_lokasi inner join kendaraan on parkir. 7 select blok.id_pegawai group by pegawai.id_kendaraan=kendaraan.nama_lokasi order by blok.id_kendaraan) as jumlah_kendaraan from parkir right outer join lokasi on parkir. NO.id_blok group by lokasi. .nama_lokasi.id_lokasi=lokasi.no_plat from parkir inner join kendaraan on parkir.nama_pegawai. NO. kendaraan.inner join lokasi on parkir.id_lokasi=lokasi.id_kendaraan=kendaraan.id_pegawai=pegawai.nama_pegawai) as jumlah from parkir inner join pegawai on parkir.id_blok group by lokasi.nama_blok asc.nama_pegawai. lokasi.id_lokasi right outer join kendaraan on parkir. 9 select pegawai. NO. count(kendaraan.id_blok=blok.id_kendaraan right outer join pegawai on parkir.nama_blok. count(pegawai.id_pegawai.id_kendaraan right outer join blok on lokasi.id_kendaraan inner join blok on lokasi. 8 select pegawai.

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)//-->