Database PostgreSQL querying range plus data on either side I had a friend wanting to query data to display a graph. Though they also…