Skip to content

Instantly share code, notes, and snippets.

@AgungPambudi
Created September 8, 2021 07:01
Show Gist options
  • Save AgungPambudi/3b7698ab1a0cd7000bab1970f250fc07 to your computer and use it in GitHub Desktop.
Save AgungPambudi/3b7698ab1a0cd7000bab1970f250fc07 to your computer and use it in GitHub Desktop.
#author : Agung Pambudi
#email : [email protected]
#version : 0.4
#
#
#==============================================================================
# _ _ _
# ___ ___ _ _ ___ ___ ___ ___ _____| |_ _ _ _| |_| ___ ___ _____
#| .'| . | | | | . | . | .'| | . | | | . | |_| _| . | |
#|__,|_ |___|_|_|_ | _|__,|_|_|_|___|___|___|_|_|___|___|_|_|_|
# |___| |___|_|
DROP TABLE datautama;
CREATE TABLE datautama SELECT kodebarang, namawarung, pesanulang FROM barang_20210831;
SELECT kodebarang, AVG(pesanulang) FROM datautama GROUP BY kodebarang;
DROP TABLE datautama;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment