The screenshot of the Query and the results below is from the question of each number, and saved with the file name: UAS_NIM.docx or UAS_NIM.pdf Create database : - Show the name of the supplier who...



The screenshot of the Query and the results below is from the question of each number, and saved with the file name: UAS_NIM.docx or UAS_NIM.pdf



Create database :




- Show the name of the supplier who sells shoes at prices below the average shoe price


- Show the name of the customer who bought shoes with odd sizes


- Show Customer Name and Average Payment Amount for Customers who make 5


transaction more than 1




Jenis_Sepatu:


INSERT INTO Jenis_Sepatu values('S-01', 'Sepatu Lari');
INSERT INTO Jenis_Sepatu values('S-02', 'Sepatu Basket');
INSERT INTO Jenis_Sepatu values('S-03', 'Sepatu Soccer');


Supplier:


INSERT INTO SUPPLIER Values('MA', 'PT. MitraAdi', 'Jl. Monginsidi 87');
INSERT INTO SUPPLIER Values('SO', 'PT. Shakti Omega', 'Jl. Sudirman 23');
INSERT INTO SUPPLIER Values('SS', 'PT. Sport Station', 'Jl. GunungKelud 8');



Merek:


INSERT INTO Merek values('AS', 'Adidas','MA');
INSERT INTO Merek values('DA', 'Diadora','SS');
INSERT INTO Merek values('PA', 'Puma','SO');
INSERT INTO Merek values('RK', 'Reebok','SS');


Customer:



INSERT INTO Customer values( 'C-01', 'Adi Kurniawan', 'Jl. Sawentan 48', 'Jakarta');
INSERT INTO Customer values( 'C-02', 'Linda Pujiastuti', 'Jl. Kuda Nil 87', 'Surabaya');
INSERT INTO Customer values( 'C-03', 'Sarbans Edi', 'Jl. Cendrawasih 6', 'Medan');
INSERT INTO Customer values( 'C-04', 'Micheal Budi', 'Jl. Ciliwung 32', 'Semarang');



Sepatu:


INSERT INTO Sepatu values( 'FT', 'Flynit', 'S-03', 'DA', 42, 485000 , 'Merah');
INSERT INTO Sepatu values( 'HE', 'Hyperfose', 'S-01', 'RK', 41, 675000 , 'Putih');
INSERT INTO Sepatu values( 'SN', 'Slip On', 'S-02', 'PA', 44, 390000 , 'Biru');
INSERT INTO Sepatu values( 'ML', 'Max Cool', 'S-03', 'AS', 43, 535000 , 'Ungu');


Jenis_Transaksi


Insert into Jenis_Transaksi values('KT', 'Kredit');
Insert into Jenis_Transaksi values('TI', 'Tunai');


Transaksi


Insert into Transaksi values('2015-01-02', 'C-02', 'SN', 1, 'TI', 390000);
Insert into Transaksi values('2015-01-03', 'C-04', 'ML', 2, 'KT', 1070000);
Insert into Transaksi values('2015-01-04', 'C-01', 'HE', 1, 'KT', 675000);
Insert into Transaksi values('2015-01-05', 'C-03', 'FT', 2, 'TI', 970000);
Insert into Transaksi values('2015-01-06', 'C-02', 'HE', 1, 'KT', 675000);


Tabel Jenis Sepatu<br>Tabel Merek<br>Kode Jenis Sepatu Varchar (10) --> PK<br>Kode Merek Varchar (10) -<br>--> PK<br>Nama Jenis Sepatu Varchar (25) --> NN<br>Nama Merek Varchar (30) --> NN<br>Kode Suplier references tabel suplier<br>Tabel Sepatu<br>Kode Sepatu Varchar (10) -<br>--> PK<br>Tabel Suplier<br>Nama Sepatu Varchar (40) --<br>> NN<br>Kode Suplier Varchar (10) -<br>-> PK<br>Kode Jenis Sepatu references Tabel Jenis Sepatu<br>Nama Suplier Varchar (30) --> NN<br>Kode Merek references Tabel Merek<br>Alamat Suplier Varchar (40) --<br>> NN<br>Size Int --> NN<br>Harga Money --> NN<br>Tabel Customer<br>Tabel Transaksi<br>Kode Customer Varchar (10) --> PK<br>Tanggal Transaksi date<br>--> PK<br>Nama Customer Varchar (30) --> NN<br>Kode Customer references Tabel Customer --> PK<br>Alamat Customer Varchar (40) --> NN<br>Kota Customer Varchar (20) --> NN<br>Kode Sepatu references Tabel Sepatu<br>Jumlah Sepatu Int --> NN<br>Kode Jenis Transaksi references Tabel Jenis Transaksi<br>Tabel Jenis Transaksi<br>Jumlah Pembayaran Int --> NN<br>Kode Jenis Transaksi Varchar (10) --> PK<br>Nama Jenis Transaksi Varchar (30) --> NN<br>Tabel Jenis Sepatu<br>Tabel Merek<br>Kode Jenis Sepatu<br>Nama Jenis Sepatu<br>Kode Merek<br>Nama Merek<br>Kode Suplier<br>Sepatu Lari<br>Sepatu Basket<br>S-01<br>AS<br>Adidas<br>МА<br>S-02<br>DA<br>Diadora<br>SS<br>S-03<br>Sepatu Soccer<br>PA<br>Puma<br>SO<br>RK<br>Reebok<br>SS<br>Tabel Sepatu<br>Kode Sepatu Nama Sepatu | Kode Jenis Sepatu<br>Kode Merek<br>Size<br>Harga<br>Warna<br>42 485000<br>41 675000<br>44 390000<br>FT<br>Flyknit<br>S-03<br>DA<br>Merah<br>Нуperfose<br>Slip On<br>НЕ<br>S-01<br>RK<br>Putih<br>SN<br>S-02<br>PA<br>Biru<br>ML<br>Max Cool<br>S-03<br>AS<br>43 535000<br>Ungu<br>Tabel Suplier<br>Kode Suplier<br>Nama Suplier<br>Alamat Suplier<br>РТ. MitraAdi<br>JI. Monginsidi 87<br>JI. Sudirman 23<br>МА<br>PT. Sakti Omega<br>PT. Sport Station<br>SO<br>SS<br>JI. Gunungkelud 8<br>Tabel Transaksi<br>Kode Jenis<br>Tanggal<br>Transaksi<br>Kode<br>Kode<br>Jumlah<br>Jumlah<br>Customer<br>Sepatu<br>Sepatu<br>Transaksi<br>Pembayaran<br>02/01/2015<br>C-02<br>SN<br>1<br>TI<br>390000<br>03/01/2015<br>C-04<br>ML<br>2 KT<br>1070000<br>04/01/2015<br>05/01/2015<br>06/01/2015<br>1| КТ<br>2 TI<br>C-01<br>НЕ<br>675000<br>C-03<br>FT<br>970000<br>С-02<br>НЕ<br>1 | КТ<br>675000<br>Tabel Customer<br>Kode Customer<br>Nama Customer<br>Alamat Customer<br>Kota Customer<br>С-01<br>Adi Kurniawan<br>JI. Sawentar 48<br>Jakarta<br>С-02<br>Linda Pujiastuti<br>JI. Kuda Nil 87<br>Surabaya<br>С-03<br>Sarbans Edi<br>JI. Cendrawasih 6<br>Medan<br>C-04<br>Michael Budi<br>JI. Ciliwung 32<br>Semarang<br>Tabel Jenis Transaksi<br>Kode Jenis Transaksi<br>Nama Jenis Transaksi<br>KT<br>Kredit<br>TI<br>Tunai<br>

Extracted text: Tabel Jenis Sepatu Tabel Merek Kode Jenis Sepatu Varchar (10) --> PK Kode Merek Varchar (10) - --> PK Nama Jenis Sepatu Varchar (25) --> NN Nama Merek Varchar (30) --> NN Kode Suplier references tabel suplier Tabel Sepatu Kode Sepatu Varchar (10) - --> PK Tabel Suplier Nama Sepatu Varchar (40) -- > NN Kode Suplier Varchar (10) - -> PK Kode Jenis Sepatu references Tabel Jenis Sepatu Nama Suplier Varchar (30) --> NN Kode Merek references Tabel Merek Alamat Suplier Varchar (40) -- > NN Size Int --> NN Harga Money --> NN Tabel Customer Tabel Transaksi Kode Customer Varchar (10) --> PK Tanggal Transaksi date --> PK Nama Customer Varchar (30) --> NN Kode Customer references Tabel Customer --> PK Alamat Customer Varchar (40) --> NN Kota Customer Varchar (20) --> NN Kode Sepatu references Tabel Sepatu Jumlah Sepatu Int --> NN Kode Jenis Transaksi references Tabel Jenis Transaksi Tabel Jenis Transaksi Jumlah Pembayaran Int --> NN Kode Jenis Transaksi Varchar (10) --> PK Nama Jenis Transaksi Varchar (30) --> NN Tabel Jenis Sepatu Tabel Merek Kode Jenis Sepatu Nama Jenis Sepatu Kode Merek Nama Merek Kode Suplier Sepatu Lari Sepatu Basket S-01 AS Adidas МА S-02 DA Diadora SS S-03 Sepatu Soccer PA Puma SO RK Reebok SS Tabel Sepatu Kode Sepatu Nama Sepatu | Kode Jenis Sepatu Kode Merek Size Harga Warna 42 485000 41 675000 44 390000 FT Flyknit S-03 DA Merah Нуperfose Slip On НЕ S-01 RK Putih SN S-02 PA Biru ML Max Cool S-03 AS 43 535000 Ungu Tabel Suplier Kode Suplier Nama Suplier Alamat Suplier РТ. MitraAdi JI. Monginsidi 87 JI. Sudirman 23 МА PT. Sakti Omega PT. Sport Station SO SS JI. Gunungkelud 8 Tabel Transaksi Kode Jenis Tanggal Transaksi Kode Kode Jumlah Jumlah Customer Sepatu Sepatu Transaksi Pembayaran 02/01/2015 C-02 SN 1 TI 390000 03/01/2015 C-04 ML 2 KT 1070000 04/01/2015 05/01/2015 06/01/2015 1| КТ 2 TI C-01 НЕ 675000 C-03 FT 970000 С-02 НЕ 1 | КТ 675000 Tabel Customer Kode Customer Nama Customer Alamat Customer Kota Customer С-01 Adi Kurniawan JI. Sawentar 48 Jakarta С-02 Linda Pujiastuti JI. Kuda Nil 87 Surabaya С-03 Sarbans Edi JI. Cendrawasih 6 Medan C-04 Michael Budi JI. Ciliwung 32 Semarang Tabel Jenis Transaksi Kode Jenis Transaksi Nama Jenis Transaksi KT Kredit TI Tunai
Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here