SlideShare a Scribd company logo
1 of 2
Download to read offline
--TAMPILKAN SEMUA DATA
SELECT * FROM tbBarang
SELECT * FROM tbPengguna
--TAMPILKAN DATA KODE, NAMA DAN SATUAN
select kodebarang, namabarang, satuan from tbBarang
--TAMPILKAN DATA YANG KODE BARANG B001
SELECT * FROM tbBarang WHERE kodeBarang='B001'
--TAMPILKAN NAMA BARANG DAN SATUAN YANG KODENYA B001
SELECT NAMABARANG, SATUAN FROM tbBarang WHERE kodeBarang='B001'
--TAMPILKAN SEMUA DATA YANG KODE BARANGNYA B002
SELECT * FROM tbBarang WHERE kodeBarang='B002'
--TAMPILKAN NAMA BARANG DAN SATUAN YANG KODE BARANGNYA B003
SELECT NAMABARANG, SATUAN FROM tbBarang WHERE kodeBarang='B003'
--TAMPILKAN KODE BARANG YANG NAMA BARANGNYA INDOMIE
SELECT KODEBARANG, namaBarang FROM tbBarang WHERE namaBarang like
'%Indomie%'
--TAMPILKAN KODE BARANG, NAMA BARANG DAN SATUAN YANG KODENYA ADALAH B001 DAN
B002
SELECT kodebarang, namabarang, satuan from tbBarang where kodeBarang ='B001',
'B002'
SELECT kodebarang, namabarang, satuan from tbBarang where kodeBarang IN
('B001', 'B002')
--insert data dengan code
INSERT INTO [tbBarang]
([kodeBarang]
,[namaBarang]
,[satuan]
,[hargaSatuan]
,[stok]
,[insertdate]
,[insertuser]
,[modifydate]
,[modifyuser])
VALUES
('B007'
,'GULAKU 2 KG'
,'KG'
,32000
,0
,GETDATE()
,'MNI'
,GETDATE()
,'MNI')
select * from tbBarang
select * from tbBarang order by namaBarang
select COUNT(kodeBarang) as jumlahdata from tbBarang where namaBarang like
'%indomie%'
proc_inputBarang 'B009','Supermie Soto', 'Box', 2000

More Related Content

More from Farichah Riha

Proteksi Data - Enkripsi Data Kelas 7
 Proteksi Data - Enkripsi Data Kelas 7 Proteksi Data - Enkripsi Data Kelas 7
Proteksi Data - Enkripsi Data Kelas 7Farichah Riha
 
Visualisasi Data dan Peringkasan Data Kelas 8
Visualisasi Data dan Peringkasan Data Kelas 8Visualisasi Data dan Peringkasan Data Kelas 8
Visualisasi Data dan Peringkasan Data Kelas 8Farichah Riha
 
Teknologi Informasi dan Komunikasi Kelas 10
Teknologi Informasi dan Komunikasi Kelas 10Teknologi Informasi dan Komunikasi Kelas 10
Teknologi Informasi dan Komunikasi Kelas 10Farichah Riha
 
Jaringan Komputer dan Internet Kelas 7
Jaringan Komputer dan Internet Kelas 7Jaringan Komputer dan Internet Kelas 7
Jaringan Komputer dan Internet Kelas 7Farichah Riha
 
Analisis Data Kelas 8
Analisis Data Kelas 8Analisis Data Kelas 8
Analisis Data Kelas 8Farichah Riha
 
Berpikir Komputasional Kelas 10
Berpikir Komputasional Kelas 10Berpikir Komputasional Kelas 10
Berpikir Komputasional Kelas 10Farichah Riha
 
Jaringan Komputer dan Internet Kelas 8
Jaringan Komputer dan Internet Kelas 8Jaringan Komputer dan Internet Kelas 8
Jaringan Komputer dan Internet Kelas 8Farichah Riha
 
Algoritma dan Pemrograman Kelas 9
Algoritma dan Pemrograman Kelas 9Algoritma dan Pemrograman Kelas 9
Algoritma dan Pemrograman Kelas 9Farichah Riha
 
Sistem Komputer Kelas 7
Sistem Komputer Kelas 7Sistem Komputer Kelas 7
Sistem Komputer Kelas 7Farichah Riha
 
Model Komputasi Umum Kelas 9
Model Komputasi Umum Kelas 9Model Komputasi Umum Kelas 9
Model Komputasi Umum Kelas 9Farichah Riha
 
Sistem Komputer Kelas 8
Sistem Komputer Kelas 8Sistem Komputer Kelas 8
Sistem Komputer Kelas 8Farichah Riha
 
Analisis Data Kelas 9
Analisis Data Kelas 9Analisis Data Kelas 9
Analisis Data Kelas 9Farichah Riha
 
Teknologi Informasi dan Komunikasi Kelas 7
Teknologi Informasi dan Komunikasi Kelas 7Teknologi Informasi dan Komunikasi Kelas 7
Teknologi Informasi dan Komunikasi Kelas 7Farichah Riha
 
Sistem Komputer Kelas 9
Sistem Komputer Kelas 9Sistem Komputer Kelas 9
Sistem Komputer Kelas 9Farichah Riha
 
Berpikir komputasional Kelas 7
Berpikir komputasional Kelas 7Berpikir komputasional Kelas 7
Berpikir komputasional Kelas 7Farichah Riha
 
Teknologi Informasi dan Komunikasi Kelas 8
Teknologi Informasi dan Komunikasi Kelas 8Teknologi Informasi dan Komunikasi Kelas 8
Teknologi Informasi dan Komunikasi Kelas 8Farichah Riha
 
Penyelesaian persoalan dengan algoritma
Penyelesaian persoalan dengan algoritmaPenyelesaian persoalan dengan algoritma
Penyelesaian persoalan dengan algoritmaFarichah Riha
 
Informatika dan Keterampilan Generik (IoT)
Informatika dan Keterampilan Generik (IoT)Informatika dan Keterampilan Generik (IoT)
Informatika dan Keterampilan Generik (IoT)Farichah Riha
 
Informatika dan Keterampilan Generik
Informatika dan Keterampilan GenerikInformatika dan Keterampilan Generik
Informatika dan Keterampilan GenerikFarichah Riha
 

More from Farichah Riha (20)

Proteksi Data - Enkripsi Data Kelas 7
 Proteksi Data - Enkripsi Data Kelas 7 Proteksi Data - Enkripsi Data Kelas 7
Proteksi Data - Enkripsi Data Kelas 7
 
Visualisasi Data dan Peringkasan Data Kelas 8
Visualisasi Data dan Peringkasan Data Kelas 8Visualisasi Data dan Peringkasan Data Kelas 8
Visualisasi Data dan Peringkasan Data Kelas 8
 
Teknologi Informasi dan Komunikasi Kelas 10
Teknologi Informasi dan Komunikasi Kelas 10Teknologi Informasi dan Komunikasi Kelas 10
Teknologi Informasi dan Komunikasi Kelas 10
 
Jaringan Komputer dan Internet Kelas 7
Jaringan Komputer dan Internet Kelas 7Jaringan Komputer dan Internet Kelas 7
Jaringan Komputer dan Internet Kelas 7
 
Analisis Data Kelas 8
Analisis Data Kelas 8Analisis Data Kelas 8
Analisis Data Kelas 8
 
Berpikir Komputasional Kelas 10
Berpikir Komputasional Kelas 10Berpikir Komputasional Kelas 10
Berpikir Komputasional Kelas 10
 
Jaringan Komputer dan Internet Kelas 8
Jaringan Komputer dan Internet Kelas 8Jaringan Komputer dan Internet Kelas 8
Jaringan Komputer dan Internet Kelas 8
 
Algoritma dan Pemrograman Kelas 9
Algoritma dan Pemrograman Kelas 9Algoritma dan Pemrograman Kelas 9
Algoritma dan Pemrograman Kelas 9
 
Sistem Komputer Kelas 7
Sistem Komputer Kelas 7Sistem Komputer Kelas 7
Sistem Komputer Kelas 7
 
Model Komputasi Umum Kelas 9
Model Komputasi Umum Kelas 9Model Komputasi Umum Kelas 9
Model Komputasi Umum Kelas 9
 
Sistem Komputer Kelas 8
Sistem Komputer Kelas 8Sistem Komputer Kelas 8
Sistem Komputer Kelas 8
 
Analisis Data Kelas 9
Analisis Data Kelas 9Analisis Data Kelas 9
Analisis Data Kelas 9
 
Teknologi Informasi dan Komunikasi Kelas 7
Teknologi Informasi dan Komunikasi Kelas 7Teknologi Informasi dan Komunikasi Kelas 7
Teknologi Informasi dan Komunikasi Kelas 7
 
Sistem Komputer Kelas 9
Sistem Komputer Kelas 9Sistem Komputer Kelas 9
Sistem Komputer Kelas 9
 
Berpikir komputasional Kelas 7
Berpikir komputasional Kelas 7Berpikir komputasional Kelas 7
Berpikir komputasional Kelas 7
 
Teknologi Informasi dan Komunikasi Kelas 8
Teknologi Informasi dan Komunikasi Kelas 8Teknologi Informasi dan Komunikasi Kelas 8
Teknologi Informasi dan Komunikasi Kelas 8
 
Penyelesaian persoalan dengan algoritma
Penyelesaian persoalan dengan algoritmaPenyelesaian persoalan dengan algoritma
Penyelesaian persoalan dengan algoritma
 
Informatika dan Keterampilan Generik (IoT)
Informatika dan Keterampilan Generik (IoT)Informatika dan Keterampilan Generik (IoT)
Informatika dan Keterampilan Generik (IoT)
 
Aplikasi CMS
Aplikasi CMSAplikasi CMS
Aplikasi CMS
 
Informatika dan Keterampilan Generik
Informatika dan Keterampilan GenerikInformatika dan Keterampilan Generik
Informatika dan Keterampilan Generik
 

Recently uploaded

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Recently uploaded (20)

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Dasar-Dasar Query

  • 1. --TAMPILKAN SEMUA DATA SELECT * FROM tbBarang SELECT * FROM tbPengguna --TAMPILKAN DATA KODE, NAMA DAN SATUAN select kodebarang, namabarang, satuan from tbBarang --TAMPILKAN DATA YANG KODE BARANG B001 SELECT * FROM tbBarang WHERE kodeBarang='B001' --TAMPILKAN NAMA BARANG DAN SATUAN YANG KODENYA B001 SELECT NAMABARANG, SATUAN FROM tbBarang WHERE kodeBarang='B001' --TAMPILKAN SEMUA DATA YANG KODE BARANGNYA B002 SELECT * FROM tbBarang WHERE kodeBarang='B002' --TAMPILKAN NAMA BARANG DAN SATUAN YANG KODE BARANGNYA B003 SELECT NAMABARANG, SATUAN FROM tbBarang WHERE kodeBarang='B003' --TAMPILKAN KODE BARANG YANG NAMA BARANGNYA INDOMIE SELECT KODEBARANG, namaBarang FROM tbBarang WHERE namaBarang like '%Indomie%' --TAMPILKAN KODE BARANG, NAMA BARANG DAN SATUAN YANG KODENYA ADALAH B001 DAN B002 SELECT kodebarang, namabarang, satuan from tbBarang where kodeBarang ='B001', 'B002' SELECT kodebarang, namabarang, satuan from tbBarang where kodeBarang IN ('B001', 'B002') --insert data dengan code INSERT INTO [tbBarang] ([kodeBarang] ,[namaBarang] ,[satuan] ,[hargaSatuan] ,[stok] ,[insertdate] ,[insertuser] ,[modifydate] ,[modifyuser]) VALUES ('B007' ,'GULAKU 2 KG' ,'KG' ,32000 ,0 ,GETDATE() ,'MNI' ,GETDATE() ,'MNI') select * from tbBarang select * from tbBarang order by namaBarang
  • 2. select COUNT(kodeBarang) as jumlahdata from tbBarang where namaBarang like '%indomie%' proc_inputBarang 'B009','Supermie Soto', 'Box', 2000