callhandler
Programmer
Simplifying my problem:
I have a database with a table with the following fields:
Date, Q1, Q2, Q3
Date = the date
Q1= answer to a question, either value 1 to 5, or 9 for No Answer
Q2, Q3= similar to Q1
I want a query that will return for a given date the average response to the question [bold]EXCLUDING[/bold] the 9 answers (ie. the not applicabale values).
The complication is that, for example, there can be an answer to Q1, Q3 but no answer to Q2.
I am new to SQL so any advice will be helpful.
I have a database with a table with the following fields:
Date, Q1, Q2, Q3
Date = the date
Q1= answer to a question, either value 1 to 5, or 9 for No Answer
Q2, Q3= similar to Q1
I want a query that will return for a given date the average response to the question [bold]EXCLUDING[/bold] the 9 answers (ie. the not applicabale values).
The complication is that, for example, there can be an answer to Q1, Q3 but no answer to Q2.
I am new to SQL so any advice will be helpful.