B
bevan07
Hello and thanks for taking the time to help.
I have two tables ('lastvalue' and 'percentile'). These tables
contain among others fields as below
-lastvalue-
site location lastval
1 1 2.41
1 2 6.89
2 1 12.59
-percentile-
site location percentile value
1 1 25 1.01
1 1 50 2.52
1 2 25 6.50
1 2 50 8.42
2 1 25 12.70
2 1 50 20.68
I would like a query that finds the 'lastval' (from the lastvalue
table) compares it to 'value' (from the percentile table) and returns
the 'percentile'. For example using the data above (the real data has
0.5 percentiles so the values are close to each other.
-result-
site location percent
1 1 50
1 2 25
2 1 25
Again thanks,
I have two tables ('lastvalue' and 'percentile'). These tables
contain among others fields as below
-lastvalue-
site location lastval
1 1 2.41
1 2 6.89
2 1 12.59
-percentile-
site location percentile value
1 1 25 1.01
1 1 50 2.52
1 2 25 6.50
1 2 50 8.42
2 1 25 12.70
2 1 50 20.68
I would like a query that finds the 'lastval' (from the lastvalue
table) compares it to 'value' (from the percentile table) and returns
the 'percentile'. For example using the data above (the real data has
0.5 percentiles so the values are close to each other.
-result-
site location percent
1 1 50
1 2 25
2 1 25
Again thanks,