Complicated Query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,


I'm basing a query on a table called"CSAT",I need to do the following
fields:
Sample Size:Count all the rows of the table "CSAT"
Satisfaction:Count the field QAns2 if it is more than 7
Dissatisfaction:Count the field QAns2 if it is less than 5

I need to group these results by "Language","Called ID"
Is it possible,'ve been trying to do it since two days but i cannot....
 
I think you can do that via a query like:
SELECT Count(CSAT.anyfieldinthetable) AS CountOfthesamefield,
Sum(IIf([QAns2]>7,1,0)) AS satisfaction, Sum(IIf([QAns2]<5,1,0)) AS
[dissatisfaction]
FROM CSAT;

Hope this helps.

Alp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Count Query 3
Reports !!!!!! 3
Need help with some complicated logic 2
Dynamic Charts between Files 3
Special characters 3
Access Dcount (multiple criteria) 3
date query 4
Query running slow 5

Back
Top