Postgresql – Select most recent non-null value for multiple columns
I've been stumped trying to optimize this query and was hoping some of you database wizards might have some insight. Here is the setup. Using TimescaleDB as my database, I have a wide table containing sensor data, it looks like…