D
DKS
I need help on structuring a query.
I have an existing query that gives me as as output the following information:
Region-Id (coded number with duplicates)
Month (alphanumeric field)
Reading (numeric field)
the existing query gives for each "region-id" the "reading" for each
"month". Thus there are duplicates for "region-id" and duplicates for
"month".
The new query that I need:
For 2 given months, and I am ready to hard-code those values in the new
query, I need a query that gives as output the following columns/values:
Column 1 = Region-Id (one single line per region-id, thus using the GROUPED
BY functionality)
Column 2 = "reading" value for Month-1 that I can give as hard-coded value
Column 3 = "reading" value for Month-2 that I can give as hard-coded value
Column 4= difference between column 3 and column 2.
It is possible that in certain cases there is no data for a region for one
or both months. Just FYI.
Thanks a lot in anticipation.
I have an existing query that gives me as as output the following information:
Region-Id (coded number with duplicates)
Month (alphanumeric field)
Reading (numeric field)
the existing query gives for each "region-id" the "reading" for each
"month". Thus there are duplicates for "region-id" and duplicates for
"month".
The new query that I need:
For 2 given months, and I am ready to hard-code those values in the new
query, I need a query that gives as output the following columns/values:
Column 1 = Region-Id (one single line per region-id, thus using the GROUPED
BY functionality)
Column 2 = "reading" value for Month-1 that I can give as hard-coded value
Column 3 = "reading" value for Month-2 that I can give as hard-coded value
Column 4= difference between column 3 and column 2.
It is possible that in certain cases there is no data for a region for one
or both months. Just FYI.
Thanks a lot in anticipation.