gojohnnygogogogo
Programmer
hello,
how can I create a query to compare values. ?
I have 2 tables new and old data, I want to compare the values in both the new and the old. ( using UNION is probably the best way)
I want to count records and group by a field.
then show the records if the count is different by twice as much.
eg,
count name
12 a
13 a
25 a
10 d
11 d
14 d
from the results I would only want to show the rows where the name is 'a' as it has one record that is double.
hope that makes sense.
please can anyone help ?
thanks.
how can I create a query to compare values. ?
I have 2 tables new and old data, I want to compare the values in both the new and the old. ( using UNION is probably the best way)
I want to count records and group by a field.
then show the records if the count is different by twice as much.
eg,
count name
12 a
13 a
25 a
10 d
11 d
14 d
from the results I would only want to show the rows where the name is 'a' as it has one record that is double.
hope that makes sense.
please can anyone help ?
thanks.