Hi All,
I am trying to make my query result look like this:
category first second final
Elephant 5 2 7
tigers
bears 3 3
as you can see i have a row "tigers" without any values.
my raw information would look like this
category order value
elephant first 5
elephant second 2
bears first 3
the query i am using looks like this
select category
, count(iif(order = 'first', value, null))
, count(iif(order = 'second', value, null)
, count(value)
from table1
group by category
how can i get the tiger row in my final view?
thanks in advanced for any help you can send my way.
Christina
I am trying to make my query result look like this:
category first second final
Elephant 5 2 7
tigers
bears 3 3
as you can see i have a row "tigers" without any values.
my raw information would look like this
category order value
elephant first 5
elephant second 2
bears first 3
the query i am using looks like this
select category
, count(iif(order = 'first', value, null))
, count(iif(order = 'second', value, null)
, count(value)
from table1
group by category
how can i get the tiger row in my final view?
thanks in advanced for any help you can send my way.
Christina