select
min(purchaseDate) filter (where fruitType = 'apple') as apple,
min(purchaseDate) filter (where fruitType = 'orange') as orange,
customer
from fruitPurchases
group by customer
select
min(purchaseDate) filter (where fruitType = 'apple') as apple,
min(purchaseDate) filter (where fruitType = 'orange') as orange,
customer
from fruitPurchases
group by customer
pg_restore Alternatif - Pencadangan PostgreSQL dan Pemulihan Otomatis dengan ClusterControl
Bagaimana cara mengetahui apakah upsert adalah pembaruan dengan PostgreSQL 9.5+ UPSERT?
Header kolom dinamis Postgres (dari tabel lain)
Postgres.app Tidak dapat memulai pada port 5432
Cara Menguji Tanggal yang Tumpang Tindih di PostgreSQL