File tree Expand file tree Collapse file tree
docs/user-defined-functions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ FROM InternationalSalesRecordTable;
472472
473473You should start seeing results with both a ` unit_cost` field and an ` iso_unit_cost` field containing the output of our UDF!
474474
475- We can also use the UDF in more complex queries e.g. to filter for records with a specific currency and quantity :
475+ We can also use the UDF in more complex queries e.g. to filter for records with specific currencies and quantities :
476476
477477` ` ` sql
478478SELECT
@@ -491,7 +491,7 @@ SELECT
491491 FROM InternationalSalesRecordTable
492492 )
493493WHERE
494- RIGHT(iso_unit_cost, 3) = ' EUR ' AND quantity > 1 ;
494+ quantity > 1 AND RIGHT(iso_unit_cost, 3) NOT IN ( ' MNT ' , ' ERR ' ) ;
495495` ` `
496496
497497> Note: This query might take a while to return results, since there are many currencies used in the data!
You can’t perform that action at this time.
0 commit comments