tweaked schema, fixed Z/F sybase query