G
Guest
I have written a union query as follows to determine the best location match
based from a table of possible gas analyses. The union query should be
running them in top to bottom order with the exact match first down to the
broadest match. However, when it lists the results it sorts them by the
order it finds them in the master table and NOT in order of the query. Is
there a solution?
SELECT ALL [Laboratory Number],[Well Name], [Sample Date Start], [Sampling
Point]
FROM [Gas Analysis exact UWI match]
UNION SELECT ALL [Laboratory Number], [Well Name], [Sample Date
Start],[Sampling Point]
FROM [Gas Analysis UWI location match]
UNION SELECT ALL [Laboratory Number], [Well Name], [Sample Date
Start],[Sampling Point]
FROM [Gas Analysis Section match]
UNION SELECT ALL [Laboratory Number], [Well Name], [Sample Date
Start],[Sampling Point]
FROM [Gas Analysis Township match];
based from a table of possible gas analyses. The union query should be
running them in top to bottom order with the exact match first down to the
broadest match. However, when it lists the results it sorts them by the
order it finds them in the master table and NOT in order of the query. Is
there a solution?
SELECT ALL [Laboratory Number],[Well Name], [Sample Date Start], [Sampling
Point]
FROM [Gas Analysis exact UWI match]
UNION SELECT ALL [Laboratory Number], [Well Name], [Sample Date
Start],[Sampling Point]
FROM [Gas Analysis UWI location match]
UNION SELECT ALL [Laboratory Number], [Well Name], [Sample Date
Start],[Sampling Point]
FROM [Gas Analysis Section match]
UNION SELECT ALL [Laboratory Number], [Well Name], [Sample Date
Start],[Sampling Point]
FROM [Gas Analysis Township match];