Hi All,
I got a table with records of inspections of some sort:
Parts may come from different suppliers. I need to find every PartID from supplier with 4th consecutive positive InspScore but, to make it harder (at least for me) I need that 4th to be last inspections (chronologically). So in this:
example none of visible PartIDs should appear in query results but:
should show record with InspDate=29/08/2015.
Question is HOW? I could probably rig up some loop through records but I'd rather use SQL for that (if it's possible of course)
I got a table with records of inspections of some sort:
Parts may come from different suppliers. I need to find every PartID from supplier with 4th consecutive positive InspScore but, to make it harder (at least for me) I need that 4th to be last inspections (chronologically). So in this:
example none of visible PartIDs should appear in query results but:
should show record with InspDate=29/08/2015.
Question is HOW? I could probably rig up some loop through records but I'd rather use SQL for that (if it's possible of course)
Last edited: