Slice shipDate = shipDateCursor.getSlice(0);
// where
// shipdate <= '1998-09-02'
if (shipDate.compareTo(MAX_SHIP_DATE) <= 0) {
// returnflag, linestatus
// quantity
// extendedprice
// extendedprice * (1 - discount)
// extendedprice * (1 - discount) * (1 + tax)