Skip to content

Commit 24e6262

Browse files
committed
Merge subqueries chapter into Restriction and rename Query Operators
- Combined subquery patterns into the Restriction chapter since subqueries are just a special case of restrictions (semijoins/antijoins) - Added Pattern 6 (Universal Quantification), Pattern 7 (Reverse Perspective), Self-Referencing Patterns, and Building Queries Systematically sections - Added Summary of Patterns table for quick reference - Added more practice exercises covering advanced subquery patterns - Renamed "The Query Operators" to "Query Operators" - Deleted the now-redundant 080-subqueries.ipynb chapter
1 parent 0dce78e commit 24e6262

File tree

3 files changed

+4
-984
lines changed

3 files changed

+4
-984
lines changed

book/50-queries/010-operators.ipynb

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,7 @@
33
{
44
"cell_type": "markdown",
55
"metadata": {},
6-
"source": [
7-
"# The Query Operators\n",
8-
"\n",
9-
"DataJoint provides five operators for building queries. These operators form a complete query language—any question you can ask of your data can be expressed using these five tools.\n",
10-
"\n",
11-
"| Operator | Symbol | Purpose |\n",
12-
"|----------|--------|--------|\n",
13-
"| **Restriction** | `&`, `-` | Filter entities by conditions |\n",
14-
"| **Projection** | `.proj()` | Select and compute attributes |\n",
15-
"| **Join** | `*` | Combine related entities |\n",
16-
"| **Aggregation** | `.aggr()` | Summarize related data |\n",
17-
"| **Union** | `+` | Combine entity sets of the same type |"
18-
]
6+
"source": "# Query Operators\n\nDataJoint provides five operators for building queries. These operators form a complete query language—any question you can ask of your data can be expressed using these five tools.\n\n| Operator | Symbol | Purpose |\n|----------|--------|--------|\n| **Restriction** | `&`, `-` | Filter entities by conditions |\n| **Projection** | `.proj()` | Select and compute attributes |\n| **Join** | `*` | Combine related entities |\n| **Aggregation** | `.aggr()` | Summarize related data |\n| **Union** | `+` | Combine entity sets of the same type |"
197
},
208
{
219
"cell_type": "markdown",
@@ -259,4 +247,4 @@
259247
},
260248
"nbformat": 4,
261249
"nbformat_minor": 4
262-
}
250+
}

0 commit comments

Comments
 (0)