I have tableA with different values:
data ------ 10 15 20 40 40000 50000 60000
In addition, I need to get some statistical information about this data (and I want to do this in one query), for example:
select count(data) from tableA where data < 100 union all select count(data) from tableA where data >= 100
As a result, I get
(No column name) ---------------- 4 3
But I want to get the results in one line, for example:
Small | Big --------- 4 | 3
How to do it? Is it possible?
sql sql-server
qehgt
source share