Hi there,
I'm having difficulty getting a query to work.
I have a query which returns a set of infringements. I'll explain: I work for an auditing company and if you fail at an item for more than two years you fail your audit.
The results set I have is a query based on multiple table joins so I won't immediately post the SQL (it's quite complex); instead I'll give you an example of what the results look like:
MemNumber AssesstmentID Version Infraction
123 725 1 2.1
123 726 2 2.1
In this small example this scheme member has had the same infraction for two consecutive years. How do I evaluate this results set to get a positive?
Version nmuber refers to the years version of the scheme rules.
1 = 2004 'version'
and
2 = 2005 'version'
I've a feeling that just getting to this stage has fried my brain.
I'm having difficulty getting a query to work.
I have a query which returns a set of infringements. I'll explain: I work for an auditing company and if you fail at an item for more than two years you fail your audit.
The results set I have is a query based on multiple table joins so I won't immediately post the SQL (it's quite complex); instead I'll give you an example of what the results look like:
MemNumber AssesstmentID Version Infraction
123 725 1 2.1
123 726 2 2.1
In this small example this scheme member has had the same infraction for two consecutive years. How do I evaluate this results set to get a positive?
Version nmuber refers to the years version of the scheme rules.
1 = 2004 'version'
and
2 = 2005 'version'
I've a feeling that just getting to this stage has fried my brain.