mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-29 14:45:51 +03:00
an example.
This commit is contained in:
parent
a4d831eb56
commit
d158f27ef8
12
examples.md
12
examples.md
@ -96,7 +96,17 @@ FROM account
|
|||||||
ORDER BY open_emp_id, product_cd;
|
ORDER BY open_emp_id, product_cd;
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
HRR: TBD
|
HRR:
|
||||||
|
|
||||||
|
{% highlight haskell %}
|
||||||
|
account_3_7 :: Relation () (Maybe Int64, String)
|
||||||
|
account_3_7 = relation $ do
|
||||||
|
a <- query account
|
||||||
|
let proj = (,) |$| a ! Account.openEmpId'
|
||||||
|
|*| a ! Account.productCd'
|
||||||
|
asc proj
|
||||||
|
return proj
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
#### Using the is null operator and the date literal
|
#### Using the is null operator and the date literal
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user