Thanks for pointing that out, that seems like a great option. In the environment I need this I won’t be able to run these functions - consequences of specific large scale systems.
The above works well, however, is there a cleaner way to phrase this query? The exec.. select … approach comes from ‘Q for Mortals’ to work around a limitation in partitioned tables.
check:{0 < first exec cnt from select cnt: count date from t where date=x}
Try “select cnt:count i=0 from t where date=x” -> This uses the same concept of .Q.cn and .Q.pn internally and maps to find the partitions in a second. Please note, this gives exceptional performance, but only for HDB’s.