summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-01-14 18:34:37 -0700
committermo khan <mo.khan@gmail.com>2020-01-14 18:34:37 -0700
commite48cfe51f530cdfaad488924722ef0b2416d2d82 (patch)
treec1da500d0149add2afead1550d4c393443759543 /doc
parent1aad694887bc43e5362c1f389a2b82c0c37a387e (diff)
describe shorthand syntax for relations
Diffstat (limited to 'doc')
-rw-r--r--doc/01-introduction.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/01-introduction.md b/doc/01-introduction.md
index 1e57ff7..61e6cee 100644
--- a/doc/01-introduction.md
+++ b/doc/01-introduction.md
@@ -40,8 +40,15 @@ line_items
# Relation: two dimensional table of data.
+## Shorthand syntax
+
Employee1(id, name) # shorthand notation for describing a relation.
+* primary key is underlined.
+* foreign key uses a dashed underline.
+
+Employees( *id*, name )
+
## Relational Keys
* primary key: attribute or combination of attributes that uniquely identifies each row in a relation.