Hi All
I need some help with a query in Mysql, which i would think that
a nested sub query would be required.
This is probably better understood with an example of what the output should
look like.
basically i need the query to run on a meter readings table and return
the last two readings in date order descending for each asset.
I hope that this makes sense![Name: source_data_table.png
Views: 14
Size: 13.2 KB]()
![Name: output_query.png
Views: 14
Size: 6.6 KB]()
I hope i have attached the pics of the source data table and query ok.
Any assistance would be greatly appreciated
I need some help with a query in Mysql, which i would think that
a nested sub query would be required.
This is probably better understood with an example of what the output should
look like.
basically i need the query to run on a meter readings table and return
the last two readings in date order descending for each asset.
I hope that this makes sense
I hope i have attached the pics of the source data table and query ok.
Any assistance would be greatly appreciated