I have a tableA with different values:
data
------
10
15
20
40
40000
50000
60000
Also, I need to get some statistic information on that data (and I want to do it in one query), for example:
select count(data) from tableA where data < 100
union all
select count(data) from tableA where data >= 100
As result, I receive
(No column name)
----------------
4
3
But I want to receive results in one row, like this:
Small | Big
---------
4 | 3
How to do it? Is it possible?
With average it would look like this.