René's URL Explorer Experiment


Title: ARRAY_AGG in PostgreSQL: Collect Grouped Values into an…

Open Graph Title: ARRAY_AGG in PostgreSQL: Collect Grouped Values into an Array with ORDER BY and FILTER

X Title: ARRAY_AGG in PostgreSQL: Collect Grouped Values into an Array with ORDER BY and FILTER

Description: ARRAY_AGG in PostgreSQL collects grouped values into an array with inline ORDER BY, FILTER and DISTINCT, plus unnest and the MySQL JSON_ARRAYAGG equivalent.

Open Graph Description: ARRAY_AGG in PostgreSQL collects grouped values into an array with inline ORDER BY, FILTER and DISTINCT, plus unnest and the MySQL JSON_ARRAYAGG equivalent.

X Description: ARRAY_AGG in PostgreSQL collects grouped values into an array with inline ORDER BY, FILTER and DISTINCT, plus unnest and the MySQL JSON_ARRAYAGG equivalent.

Keywords:

Opengraph URL: https://sql.coderang.dev/en/blog/sql-array-agg

direct link

Domain: sql.coderang.dev

IPv4 address: 79.137.205.149


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"Organization","@id":"https://sql.coderang.dev/#organization","name":"SQL Arena","url":"https://sql.coderang.dev","logo":{"@type":"ImageObject","url":"https://sql.coderang.dev/android-chrome-192x192.png","width":192,"height":192},"sameAs":["https://t.me/coderang"],"description":"SQL Arena is an interactive SQL training platform — a practice arena, duels, a reference handbook and tutorials for analysts and backend developers."}
{"@context":"https://schema.org","@type":"WebSite","name":"SQL Arena","url":"https://sql.coderang.dev","inLanguage":"en-US","publisher":{"@id":"https://sql.coderang.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":"https://sql.coderang.dev/trainer/tasks?search={search_term_string}","query-input":"required name=search_term_string"}}
{"@context":"https://schema.org","@type":"TechArticle","headline":"ARRAY_AGG in PostgreSQL: Collect Grouped Values into an Array with ORDER BY and FILTER","description":"ARRAY_AGG in PostgreSQL collects grouped values into an array with inline ORDER BY, FILTER and DISTINCT, plus unnest and the MySQL JSON_ARRAYAGG equivalent.","image":{"@type":"ImageObject","url":"https://sql.coderang.dev/og?lang=en&title=ARRAY_AGG%20in%20PostgreSQL%3A%20Collect%20Grouped%20Values%20into%20an%20Array%20with%20ORDER%20BY%20and%20FILTER","width":1200,"height":630},"datePublished":"2026-06-19T02:55:52.117Z","dateModified":"2026-06-19T02:55:52.117Z","author":{"@type":"Organization","@id":"https://sql.coderang.dev/#organization","name":"SQL Arena"},"publisher":{"@type":"Organization","@id":"https://sql.coderang.dev/#organization","name":"SQL Arena","url":"https://sql.coderang.dev","logo":{"@type":"ImageObject","url":"https://sql.coderang.dev/android-chrome-192x192.png","width":192,"height":192},"sameAs":["https://t.me/coderang"],"description":"SQL Arena is an interactive SQL training platform — a practice arena, duels, a reference handbook and tutorials for analysts and backend developers."},"mainEntityOfPage":{"@type":"WebPage","@id":"https://sql.coderang.dev/en/blog/sql-array-agg"},"inLanguage":"en-US","wordCount":466,"timeRequired":"PT2M","articleSection":"sql"}
{"@context":"https://schema.org","@type":"BreadcrumbList","inLanguage":"en-US","itemListElement":[{"@type":"ListItem","position":1,"name":"SQL Arena","item":"https://sql.coderang.dev/en"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://sql.coderang.dev/en/blog"},{"@type":"ListItem","position":3,"name":"ARRAY_AGG in PostgreSQL: Collect Grouped Values into an Array with ORDER BY and FILTER","item":"https://sql.coderang.dev/en/blog/sql-array-agg"}]}

theme-color#0a0a0a
application-nameSQL Arena
authorSQL Arena
creatorSQL Arena
publisherSQL Arena
googlebotindex, follow, max-image-preview:large, max-snippet:-1
google-site-verificationEaorZzgqTO4qTFsEEiRorcvcDZOqzyHpTwUJwsCjq_Q
og:site_nameSQL Arena
og:localeen_US
og:imagehttps://sql.coderang.dev/og?lang=en&title=ARRAY_AGG in PostgreSQL: Collect Grouped Values into an Array with ORDER BY and FILTER
og:image:width1200
og:image:height630
og:image:altARRAY_AGG in PostgreSQL: Collect Grouped Values into an Array with ORDER BY and FILTER
og:image:typeimage/png
og:typearticle
article:published_time2026-06-19T02:55:52.117Z
article:modified_time2026-06-19T02:55:52.117Z
article:tagmysql
twitter:cardsummary_large_image
twitter:imagehttps://sql.coderang.dev/og?lang=en&title=ARRAY_AGG in PostgreSQL: Collect Grouped Values into an Array with ORDER BY and FILTER
twitter:image:altARRAY_AGG in PostgreSQL: Collect Grouped Values into an Array with ORDER BY and FILTER

Links:

SQL Arenahttps://sql.coderang.dev/en
Trainerhttps://sql.coderang.dev/en/trainer/tasks
Courseshttps://sql.coderang.dev/en/courses
Sandboxhttps://sql.coderang.dev/en/sandbox
Pricinghttps://sql.coderang.dev/en/pricing
Bloghttps://sql.coderang.dev/en/blog
Worldhttps://sql.coderang.dev/en/world
Sign inhttps://sql.coderang.dev/en/login
Start freehttps://sql.coderang.dev/en/trainer/tasks
SQL Arenahttps://sql.coderang.dev/en
Bloghttps://sql.coderang.dev/en/blog
Referencehttps://sql.coderang.dev/en/reference#sql-array-agg
PreviousCOUNT(*) FILTER (WHERE ...): Conditional Aggregates in One Passhttps://sql.coderang.dev/en/blog/sql-filter-clause
NextSQL GROUPING SETS: Subtotals and Grand Totals in One Queryhttps://sql.coderang.dev/en/blog/sql-grouping-sets
What are COUNT, SUM, AVG, MIN, MAX in SQL? Aggregate functions for beginnershttps://sql.coderang.dev/en/blog/sql-aggregates
What is GROUP BY in SQL? Grouping rows for beginnershttps://sql.coderang.dev/en/blog/sql-group-by
What is HAVING in SQL? Filtering groups for beginnershttps://sql.coderang.dev/en/blog/sql-having
STRING_AGG in SQL: Concatenate Grouped Rows with a Delimiter and ORDER BYhttps://sql.coderang.dev/en/blog/sql-string-agg
Paid Events Across Citieshttps://sql.coderang.dev/en/trainer/tasks/bq-countif-paid-by-city
Which Platform Converts Besthttps://sql.coderang.dev/en/trainer/tasks/bq-countif-conversion-rate
What Cities View and Buyhttps://sql.coderang.dev/en/trainer/tasks/bq-countif-two-conditions
Platforms That Saw a Paymenthttps://sql.coderang.dev/en/trainer/tasks/bq-countif-logical-or
When Kotomarket Comes Alivehttps://sql.coderang.dev/en/trainer/tasks/bq-extract-hour
User activity: views and purchaseshttps://sql.coderang.dev/en/trainer/tasks/ch-evt-cmb-04-user-activity
All problems on this topic →https://sql.coderang.dev/en/practice/aggregations
Open trainerhttps://sql.coderang.dev/en/trainer/tasks
https://t.me/coderang
Python Arenahttps://python.coderang.dev
Playwright Arenahttps://playwright.coderang.dev
Hello Klarahttps://hello-klara.ru
Referencehttps://sql.coderang.dev/en/reference
Bloghttps://sql.coderang.dev/en/blog
Taskshttps://sql.coderang.dev/en/trainer/tasks
SQL practicehttps://sql.coderang.dev/en/practice
Pricinghttps://sql.coderang.dev/en/pricing
Offerhttps://sql.coderang.dev/en/terms
Privacyhttps://sql.coderang.dev/en/privacy
Cookieshttps://sql.coderang.dev/en/cookies
Abouthttps://sql.coderang.dev/en/about
Releaseshttps://sql.coderang.dev/en/releases

Response headers:
Servernginx
Content-Typetext/html; charset=utf-8
Cache-Controls-maxage=300, stale-while-revalidate

Viewport: width=device-width, initial-scale=1, maximum-scale=5, viewport-fit=cover

Robots: index, follow


URLs of crawlers that visited me.