blob: 28fd2c8d48e4e14b29f1dab4d10765e2df10934d [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001declare function samecust($cust, $ord)
2{$cust.cid = $ord.cid}
3
4for $c in dataset('Customers')
5for $o in dataset('Orders')
6where samecust($c, $o)
7 and $c.age < 21 and $o.total > 1000.00
8return { "custname":$c.name, "orddate":$o.date }