By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 2 Duplicates: 0 Warnings: 0
Records: 256 Duplicates: 0 Warnings: 0
Records: 67081 Duplicates: 0 Warnings: 0
Records: 0 Duplicates: 0 Warnings: 0
| A | count(*) |
|---|---|
| 1 | 67080 |
| 2 | 260 |
| sum(A) |
|---|
| 520 |
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | SIMPLE | DEMO | null | ref | DEMO_AB | DEMO_AB | 8 | const | 260 | 100.00 | Using index |
| sum(B) |
|---|
| 0 |
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | SIMPLE | DEMO | null | ref | DEMO_AB | DEMO_AB | 8 | const | 260 | 100.00 | Using index |
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | SIMPLE | DEMO | null | ref | DEMO_AB | DEMO_AB | 8 | const | 260 | 100.00 | null |
| sum(C) |
|---|
| 0 |