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
Copy file name to clipboardExpand all lines: book/20-concepts/03-relational-practice.ipynb
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -600,9 +600,9 @@
600
600
"cell_type": "markdown",
601
601
"metadata": {},
602
602
"source": [
603
-
"## Common Database Operations\n",
603
+
"## Common Data Queries\n",
604
604
"\n",
605
-
"We'll briefly demonstrate SQL operations to contrast them with DataJoint. The operations work the same—the difference is in how we *conceive* of the database.\n",
605
+
"We'll briefly demonstrate equiavalent database queries in both SQL and DataJoint. The operations work the same—the difference is in how we *conceive* of the database.\n",
606
606
"\n",
607
607
"All database queries are built from four fundamental relational operations:\n",
608
608
"\n",
@@ -883,7 +883,7 @@
883
883
"cell_type": "markdown",
884
884
"metadata": {},
885
885
"source": [
886
-
"### Example Queries: Join Operations\n",
886
+
"### Example Queries: Joining tables\n",
887
887
"\n",
888
888
"**Join** combines related data from multiple tables. The foreign key relationships tell us which tables can be meaningfully joined:\n"
889
889
]
@@ -1568,6 +1568,7 @@
1568
1568
"metadata": {},
1569
1569
"source": [
1570
1570
"```sql\n",
1571
+
"-- SQL Equivalent:\n",
1571
1572
"-- Delete a recording (cascade to NeuralUnits)\n",
1572
1573
"DELETE FROM NeuralUnits WHERE experiment_id = 1 AND recording_id = 1;\n",
1573
1574
"DELETE FROM Recording WHERE experiment_id = 1 AND recording_id = 1;\n",
0 commit comments