Replace Temp with Query on TotalAmount and frequentRenterPoints