From f8b9d2e271dc6927ee92622211071913ead3bd73 Mon Sep 17 00:00:00 2001 From: VTolmasov <91890419+VTolmasov@users.noreply.github.com> Date: Sat, 11 May 2024 03:41:28 +0300 Subject: [PATCH] Add CROSS JOIN in queries (#5447) Added CROSS JOIN type --- .../102-rdbms-concepts/100-object-model/106-queries.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/roadmaps/postgresql-dba/content/102-rdbms-concepts/100-object-model/106-queries.md b/src/data/roadmaps/postgresql-dba/content/102-rdbms-concepts/100-object-model/106-queries.md index 9a0af4de5..dee5ab6c0 100644 --- a/src/data/roadmaps/postgresql-dba/content/102-rdbms-concepts/100-object-model/106-queries.md +++ b/src/data/roadmaps/postgresql-dba/content/102-rdbms-concepts/100-object-model/106-queries.md @@ -44,7 +44,7 @@ SELECT COUNT(*) AS user_count, AVG(age) AS average_age FROM users; ### Joins -When you want to retrieve related data from multiple tables, you can use a `JOIN` in the query. There are various types of joins available, such as `INNER JOIN`, `LEFT JOIN`, `RIGHT JOIN`, and `FULL OUTER JOIN`. +When you want to retrieve related data from multiple tables, you can use a `JOIN` in the query. There are various types of joins available, such as `INNER JOIN`, `LEFT JOIN`, `RIGHT JOIN`, `FULL OUTER JOIN` and `CROSS JOIN`. Syntax for a simple `INNER JOIN`: @@ -86,4 +86,4 @@ WHERE id IN (SELECT DISTINCT user_id FROM orders); There's much more to explore with various types of queries, but this foundational knowledge will serve as a solid basis for further learning and experimentation. -- [Querying a Table](https://www.postgresql.org/docs/current/tutorial-select.html) \ No newline at end of file +- [Querying a Table](https://www.postgresql.org/docs/current/tutorial-select.html)