SlideShare a Scribd company logo
Kelompok PBD
Candra Arief Romadhoni (613110043)
Rahmat Riswanto (613111050)
M. Khoirul Miftah (613111066)
Fierza Adila Pratama (613111057)
Indra Darmawan P (613111064)

D3IF – 35 - 02
Gambar Perancangan ERD
Perancangan DDL
 Table mahasiswa
 CREATE TABLE `basdat`.`mahasiswa` (
 `nim` VARCHAR( 10 ) NULL primary key ,
 `nama` TEXT ,
 `alamat` TEXT ,
 `no_telp` VARCHAR( 15 ) ,
 `password` VARCHAR( 15 )
 );
Perancangan DDL
   tabel penjual
   CREATE TABLE `basdat`.`penjual` (
   `kd_penjual` varchar(10) NULL primary key,
   `nama` text ,
   `daerah` text ,
   `no_telp` varchar(15) ,
   `password` varchar(15) ,
   kd_makanan varchar(10)
   kd_minuman varchar (10)
   );
Perancangan DDL
 table makanan
 CREATE TABLE `basdat`.`makanan` (
 `kd_makanan` VARCHAR( 10 ) NULL primary key ,
 `nm_makanan` TEXT ,
 `jenis` TEXT ,
 `harga` INT
);
Perancangan DDL
 table minuman
 CREATE TABLE `basdat`.`minuman` (
 `kd_minuman` VARCHAR( 10 ) NULL primary key ,
 `nm_minuman` TEXT ,
 `jenis` TEXT ,
 `harga` INT
 );
Perancangan DDL
 table transaksi
 CREATE TABLE `basdat`.`transaksi` (
 `kd_transaksi` VARCHAR( 10 ) NULL primary key,
 `nim` VARCHAR( 10 ) ,
 `kd_penjual` varchar ( 10 ) ,
 `tanggal` DATE
 );
Perancangan DDL
 table admin
 CREATE TABLE `basdat`.`admin` (
 `id` VARCHAR( 10 ) NULL ,
 `password` VARCHAR( 10 ) NULL ,
 `nama` TEXT NOT NULL
 );
Perancangan DML
   insert into mahasiswa values ('613110043','doni','bandung','1234567','sembarang');
   insert into mahasiswa values ('613110042','diko','malang','12234567','diko123');
   insert into mahasiswa values ('613110041','doop','surabaya','144234567','doop123');

   insert into transaksi values ('t001','613110043','p-001','01-12-2012');
   insert into transaksi values ('t002','613110042','p-002','02-12-2012');
   insert into transaksi values ('t003','613110041','p-003','03-12-2012');

   insert into penjual values ('p-001','saidi','sukabirus','134123','saidi123');
   insert into penjual values ('p-002','sariyem','bojongsoang','1324123','sariyem123');
   insert into penjual values ('p-003','markonah','sukapura','134123','markonah123');

   insert into makanan values ('mkn-01','nasi goreng','makanan berat','8000');
   insert into makanan values ('mkn-02','batagor','makanan ringan','6000');
   insert into makanan values ('mkn-03','burger','makanan ringan','8000');

   insert into minuman values ('mnm-01','es doger','es buah','5000');
   insert into minuman values ('mnm-02','es shanghai','es buah','5000');
   insert into minuman values ('mnm-03','susu telor','susu','5000');

   insert into admin values ('a-011','admin','admin');
Perancangan DML
sintaks view transaksi :
select transaksi.kd_transaksi , mahasiswa.nim ,
   penjual.kd_penjual
nm_makanan , nm_minuman
((sum(count(makanan.kd_makanan) * harga )) +
sum(count(minuman.kd_minuman) * harga ))) as "total bayar"
from mahasiswa , transaksi , penjual
where mahasiswa.nim = transaksi.nim and transaksi.nim =
   penjual.nim
group by transaksi.kd_transaksi , mahasiswa.nim ,
   penjual.kd_penjual ,
nm_makanan , nm_minuman
order by transaksi.kd_transaksi asc;
Perancangan DML
 sintaks update :
 update mahasiswa set no_telp='0813455665'
 where nim='613110043'
 sintaks delete:
 delete from mahasiswa where nim='613110041' ;

More Related Content

Featured

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
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
Neil 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 2024
Albert 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 Insights
Kurio // 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 2024
Search 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 summary
SpeakerHub
 
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 Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit 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 management
MindGenius
 
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 Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 
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
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 

Featured (20)

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
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

PEMESANAN MAKANAN dan MINUMAN SECARA ONLINE via WEBSITE

  • 1. Kelompok PBD Candra Arief Romadhoni (613110043) Rahmat Riswanto (613111050) M. Khoirul Miftah (613111066) Fierza Adila Pratama (613111057) Indra Darmawan P (613111064) D3IF – 35 - 02
  • 3. Perancangan DDL  Table mahasiswa  CREATE TABLE `basdat`.`mahasiswa` (  `nim` VARCHAR( 10 ) NULL primary key ,  `nama` TEXT ,  `alamat` TEXT ,  `no_telp` VARCHAR( 15 ) ,  `password` VARCHAR( 15 )  );
  • 4. Perancangan DDL  tabel penjual  CREATE TABLE `basdat`.`penjual` (  `kd_penjual` varchar(10) NULL primary key,  `nama` text ,  `daerah` text ,  `no_telp` varchar(15) ,  `password` varchar(15) ,  kd_makanan varchar(10)  kd_minuman varchar (10)  );
  • 5. Perancangan DDL  table makanan  CREATE TABLE `basdat`.`makanan` (  `kd_makanan` VARCHAR( 10 ) NULL primary key ,  `nm_makanan` TEXT ,  `jenis` TEXT ,  `harga` INT );
  • 6. Perancangan DDL  table minuman  CREATE TABLE `basdat`.`minuman` (  `kd_minuman` VARCHAR( 10 ) NULL primary key ,  `nm_minuman` TEXT ,  `jenis` TEXT ,  `harga` INT  );
  • 7. Perancangan DDL  table transaksi  CREATE TABLE `basdat`.`transaksi` (  `kd_transaksi` VARCHAR( 10 ) NULL primary key,  `nim` VARCHAR( 10 ) ,  `kd_penjual` varchar ( 10 ) ,  `tanggal` DATE  );
  • 8. Perancangan DDL  table admin  CREATE TABLE `basdat`.`admin` (  `id` VARCHAR( 10 ) NULL ,  `password` VARCHAR( 10 ) NULL ,  `nama` TEXT NOT NULL  );
  • 9. Perancangan DML  insert into mahasiswa values ('613110043','doni','bandung','1234567','sembarang');  insert into mahasiswa values ('613110042','diko','malang','12234567','diko123');  insert into mahasiswa values ('613110041','doop','surabaya','144234567','doop123');   insert into transaksi values ('t001','613110043','p-001','01-12-2012');  insert into transaksi values ('t002','613110042','p-002','02-12-2012');  insert into transaksi values ('t003','613110041','p-003','03-12-2012');  insert into penjual values ('p-001','saidi','sukabirus','134123','saidi123');  insert into penjual values ('p-002','sariyem','bojongsoang','1324123','sariyem123');  insert into penjual values ('p-003','markonah','sukapura','134123','markonah123');   insert into makanan values ('mkn-01','nasi goreng','makanan berat','8000');  insert into makanan values ('mkn-02','batagor','makanan ringan','6000');  insert into makanan values ('mkn-03','burger','makanan ringan','8000');   insert into minuman values ('mnm-01','es doger','es buah','5000');  insert into minuman values ('mnm-02','es shanghai','es buah','5000');  insert into minuman values ('mnm-03','susu telor','susu','5000');   insert into admin values ('a-011','admin','admin');
  • 10. Perancangan DML sintaks view transaksi : select transaksi.kd_transaksi , mahasiswa.nim , penjual.kd_penjual nm_makanan , nm_minuman ((sum(count(makanan.kd_makanan) * harga )) + sum(count(minuman.kd_minuman) * harga ))) as "total bayar" from mahasiswa , transaksi , penjual where mahasiswa.nim = transaksi.nim and transaksi.nim = penjual.nim group by transaksi.kd_transaksi , mahasiswa.nim , penjual.kd_penjual , nm_makanan , nm_minuman order by transaksi.kd_transaksi asc;
  • 11. Perancangan DML  sintaks update :  update mahasiswa set no_telp='0813455665'  where nim='613110043'  sintaks delete:  delete from mahasiswa where nim='613110041' ;