Relative Content

Tag Archive for sqlpostgresql

NULL Values For Unmatched WHERE

Say I have a table with dates and associated data for each date. I want to select every date, but only show the associated data if it matches a WHERE clause, otherwise just fill it with NULL. The goal is to have a result with a row for each date, but only cool rows have the associated data.