reportbuilder
New member
- Local time
- Today, 13:45
- Joined
- May 16, 2010
- Messages
- 5
Hi,
I'm trying to build a query to determine if primary and secondary is consistent.
I have 1 datasheet with questionnaire data. Each questionnaire has a unique id. Some questionnaires are entered double to determine the consistency of the data. The original questionnaires are entered as primary and the doubles are entered as secondary. The questionnaires have approx. 75 questions.
I wonder if it is possible to build a query to find (and count) the inconsistencies between the primairy and secondary entries.
To determine the primary data I use the query
SELECT * FROM VV_questionnaires WHERE [VV_questionnaires].version = primary
and for the secondary data
SELECT * FROM VV_questionnaires WHERE [VV_questionnaires].version = secondary
The match between the primary and secondary data is made via the following query:
SELECT [qrySecondary].*, [qryPrimary].*
FROM [qrySecondary] INNER JOIN [qryPrimary] ON [qrySecondary].code = [qryPrimary].code;
Now I cannot figure out a way to build a query to determine the differences between the two queries without building a query per question. Any suggestions?
I'm trying to build a query to determine if primary and secondary is consistent.
I have 1 datasheet with questionnaire data. Each questionnaire has a unique id. Some questionnaires are entered double to determine the consistency of the data. The original questionnaires are entered as primary and the doubles are entered as secondary. The questionnaires have approx. 75 questions.
I wonder if it is possible to build a query to find (and count) the inconsistencies between the primairy and secondary entries.
To determine the primary data I use the query
SELECT * FROM VV_questionnaires WHERE [VV_questionnaires].version = primary
and for the secondary data
SELECT * FROM VV_questionnaires WHERE [VV_questionnaires].version = secondary
The match between the primary and secondary data is made via the following query:
SELECT [qrySecondary].*, [qryPrimary].*
FROM [qrySecondary] INNER JOIN [qryPrimary] ON [qrySecondary].code = [qryPrimary].code;
Now I cannot figure out a way to build a query to determine the differences between the two queries without building a query per question. Any suggestions?