Reference docMembers

SQL Query Patterns Reference

SQL Query Patterns Reference is a reference document for Codex, from the Alireza Rezvani skills and agents collection by alirezarezvani. The full text is about 1,369 words in 50 sections, with 40 code blocks and 10 tables. It is a supporting file that a skill or agent reads while it works, so the main instructions can stay short.

It is most useful for people working in Backend and Data and analytics who use Codex.

What it covers

  • JOIN Patterns
  • INNER JOIN - matching rows in both tables
  • LEFT JOIN - all rows from left, matching from right
  • Self JOIN - comparing rows within the same table
  • CROSS JOIN - every combination cartesian product
  • LATERAL JOIN PostgreSQL - correlated subquery as a table
  • Common Table Expressions CTEs
  • Basic CTE - readable subquery
  • Multiple CTEs - chaining transformations
  • Recursive CTE - hierarchical data

The full text is in the members library

Book a call and we will give you access to the full Codex library: every entry in full, search by meaning, copy and download.

Source: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/sql-database-assistant/references/query_patterns.md

Author: alirezarezvani, Alireza Rezvani skills and agents. License: MIT.

Related entries