RFID-data compression for supporting aggregate queries