# \#postgres

**URL:** https://discuss.dataengineercafe.io/tag/postgres/46.md

[Latest](https://discuss.dataengineercafe.io/latest.md) · [Categories](https://discuss.dataengineercafe.io/categories.md) · [Tags](https://discuss.dataengineercafe.io/tags.md)

---

## [มาเล่น Postgres playground กัน!](https://discuss.dataengineercafe.io/t/postgres-playground/448)

<div class="topic-metadata">

**Author:** [@kahnwong](https://discuss.dataengineercafe.io/u/kahnwong)\
**Replies:** 0\
**Last updated:** [October 28, 2022, 1:48pm UTC](https://discuss.dataengineercafe.io/t/postgres-playground/448 "2022-10-28T13:48:10Z")

</div>

ไม่ต้องปวดหัวกับการ setup postgres อีกต่อไป เย้! :elephant:

---

## [ฟังก์ชั่น string\_agg เอาไว้เชื่อมต่อข้อมูลสตริงใน sql ตอนที่เรา group by](https://discuss.dataengineercafe.io/t/string-agg-sql-group-by/96)

<div class="topic-metadata">

**Author:** [@zkan](https://discuss.dataengineercafe.io/u/zkan)\
**Replies:** 0\
**Last updated:** [January 12, 2022, 8:51am UTC](https://discuss.dataengineercafe.io/t/string-agg-sql-group-by/96 "2022-01-12T08:51:42Z")

</div>

ลองนึกภาพว่าเรามีข้อมูลอยู่ประมาณนี้ เป็นข้อมูลชื่อเมนูต่างๆ :drooling\_face: เวลาที่เราอยากจะหาราคาเฉลี่ยของเมนูแต่ละประเภท เราก็จะเขียน SQL ได้ประมาณนี้ SELECT category, AVG(price) AS average\_price FROM food G…
