Show 2nd last reocrd based on this criteria

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Appreciate if you can help me figure out a way to resolve this query.
I'm trying to query for customer maintenance records based on the criteria
below but I'm not sure how I can go about doing so:

BEGIN checking from the last record:

IF the "Support Flag Field" = "NO" AND "Start Date field" <= Now() - 60days
THEN shows only the the previous record before the last record
ELSE shows the last record
 
Thanks S.Clark. Now I've gained more knowledge reading through the website.
Appreciate your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top