Multiple counts in sql?
hello,
anyone know how you do multiple counts in one sql statement?
anyone know how you do multiple counts in one sql statement?
Xbox Live: Bring It On
Bsc (hons) Network Computing - 1st Class
WIP: Msc advanced networking
Bsc (hons) Network Computing - 1st Class
WIP: Msc advanced networking
Comments
-
TechJunky Member Posts: 881use a select within a select statement.
IE: whatever,(select count(*)
from Table tablename
where whatever = whatever1
and yever='C') as "Count of C"
select count(*)
repeat same process.....