Hi
I have a table and want to count the bill no less than 50 and greater than 50. The following two commands works perfectly. But is it possible to perform with a single query.
SELECT name,COUNT(bill_no) AS Old FROM table WHERE bill_no <=50 GROUP BY name ;
SELECT name,COUNT(bill_no) AS New FROM table WHERE bill_no >50 GROUP BY name ;
+-----------+------------+
| name | bill_no |
+-----------+------------+
| A | 10 |
| A | 12 |
| B | 20 |
| A | 13 |
| C | 30 |
| C | 31 |
| D | 40 |
| E | 80 |
| E | 81 |
| E | 82 |
| K | 89 |
| L | 85 |
| M | 97 |
| M | 85 |
+-----------+------------+
Appreciate for advice.
Balen..