I have a query that picks id fields from three tables (named 'scope', 'categories' and 'title') and creates a ref number from them (the numbers represent system ids, and they're not primary keys or autogenerated numbers).
The query in question uses a simple module to build the three numbers into a unique id such as 1.1.2 or 1.2.1 etc. Very simple so far.
My problem arises that it's possible to have more than one record in the query with the same 'built' id, so a fourth number is required that must increment if the three numbers are the same.
I can't find a way to do this simply -- can anybody help me?
Thanks in advance you wonderful, wonderful people....
Jordan
The query in question uses a simple module to build the three numbers into a unique id such as 1.1.2 or 1.2.1 etc. Very simple so far.
My problem arises that it's possible to have more than one record in the query with the same 'built' id, so a fourth number is required that must increment if the three numbers are the same.
I can't find a way to do this simply -- can anybody help me?
Thanks in advance you wonderful, wonderful people....
Jordan