Hi there,
This will hopefully take someone only a minute to answer but as for me I'am a bit of a beginner and have searched quite hard but cannot find an answer.
I have a table with a number of columns, for arguements sake its a simple customer details table with ID, first_name, surname etc...
I now need a query that I can run once and it will give me the amount of first names including for example amount of 'steve's and amount of 'jeffrey's, ‘Becky’s etc. The required output should be:
Query_get_first_names
steve | jeffrey | Becky
14 21 50
I have a query i've written and in the first column I have a Like "steve" that gives only people with that name and then to get the count I have another column that has this Expr1: Sum(1) which gives me a count of the amount of steve in the table. Duplicating this doesn't give me the required results and I don’t want to have to create multiple queries for this.
However, I would like a query that can query the same column giving the amount of instances. Hope this makes sense.
Thank you.
p.s. not sure how to use the 'count' citeria but you must be able to do something like:
count ("steve") | count ("Becky") | etc etc
This will hopefully take someone only a minute to answer but as for me I'am a bit of a beginner and have searched quite hard but cannot find an answer.
I have a table with a number of columns, for arguements sake its a simple customer details table with ID, first_name, surname etc...
I now need a query that I can run once and it will give me the amount of first names including for example amount of 'steve's and amount of 'jeffrey's, ‘Becky’s etc. The required output should be:
Query_get_first_names
steve | jeffrey | Becky
14 21 50
I have a query i've written and in the first column I have a Like "steve" that gives only people with that name and then to get the count I have another column that has this Expr1: Sum(1) which gives me a count of the amount of steve in the table. Duplicating this doesn't give me the required results and I don’t want to have to create multiple queries for this.
However, I would like a query that can query the same column giving the amount of instances. Hope this makes sense.
Thank you.
p.s. not sure how to use the 'count' citeria but you must be able to do something like:
count ("steve") | count ("Becky") | etc etc