@@ -19,7 +19,7 @@ TutorialD (master):
1919TutorialD is strongly-typed. The basic built-in types are:
2020
2121|Type Name|Explanation|Example|
22−|-|-|-|
22+|---------|-----------|-------|
2323|char|arbitrary text|"The Old Man and the Sea"|
2424|int|any integer|-4|
2525|datetime|timestamp UTC|"2015-02-02 04:05:02"::datetime|
@@ -73,7 +73,7 @@ The examples in this tutorial can be executed after loading Chris Date's sample
7373Each section assumes a fresh instance of the Date examples. The relation variables created in the script are:
7474
7575|Relation Variable Name|Description|
76−|-|-|
76+|----------------------|-----------|
7777|S|suppliers|
7878|P|parts|
7979|SP|contains mapping of which suppliers supply which parts|
@@ -223,7 +223,7 @@ The "@" is required in the above query in order to distinguish the attribute's n
223223Supported atom functions include:
224224
225225|Function|Purpose|
226−|-|-|
226+|--------|-------|
227227|add(int,int)|Return the sum of two integers.|
228228|not(bool)|Invert a boolean expression.|
229229|lt(int,int)|Returns boolean true atom if he first argument is less than the second argument.|
@@ -471,7 +471,7 @@ TutorialD (master): :showexpr S group ({S#,SNAME,STATUS} as subrel):{citycount:=
471471In this query result, we can simultaneously answer how many suppliers are located in each city and which suppliers they are. The expression is constructed by first grouping to isolate the city, then extending the query to add a attribute containing the tuple count for each subrelation.
472472
473473|Function Name|Description|
474−|-|-|
474+|-------------|-----------|
475475|count(relation{any tuple types})|return the number of tuples in each relation value|
476476|sum(relation{int})|return the int sum of the relation's values|
477477|max(relation{int})|return the maximum int from all the relation's values|