You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`CREATE TABLE "electronics" PARTITION OF "products" FOR VALUES IN ('Electronics')`
1473
1473
]
1474
1474
},
1475
+
{
1476
+
title: 'distinct in args',
1477
+
sql: [
1478
+
`SELECT
1479
+
f.title,
1480
+
STRING_AGG (
1481
+
a.first_name || ' ' || a.last_name,
1482
+
','
1483
+
ORDER BY
1484
+
a.first_name,
1485
+
a.last_name
1486
+
) actors
1487
+
FROM
1488
+
film f
1489
+
INNER JOIN film_actor fa USING (film_id)
1490
+
INNER JOIN actor a USING (actor_id)
1491
+
GROUP BY
1492
+
f.title;`,
1493
+
`SELECT "f".title, STRING_AGG("a".first_name || ' ' || "a".last_name, ',' ORDER BY "a".first_name ASC, "a".last_name ASC) AS "actors" FROM "film" AS "f" INNER JOIN "film_actor" AS "fa" USING ("film_id") INNER JOIN "actor" AS "a" USING ("actor_id") GROUP BY "f".title`
0 commit comments