Daily average temperature of a sensor

Thanks, but I had already implemented platform: sql example as per my initial post. What I wanted was the historical data on a per day basis.