Using aggregate cursor for first 5 fields