Skip to content
Advertisement

how to find the difference of median price of a municipality from the current month and the next one?

How to get the absolute difference between the median house price for tat month in that municipality and the median house price for the next month in that municipality? I have a table with house data. it contains the price and municipality for each house and date it got sold. I want to get the difference of the median price for a municipality of a month and median price of the house for municipality of the next month. Already created the median function. This is my query at the moment:

EDIT:

sample data:

expected result:

Advertisement

Answer

I think I found it myself.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement