Postgresql – SQL for returning number of days since last availability, grouped by category?
I'm using SQL and I have some dummy car dealership data that for a given dealership tells me whether a particular make is currently being sold there, and if not, when the last time that make was available at that…