Groups | Blog | Home
all groups > sql server (alternate) > july 2004 >

sql server (alternate) : How to count number of rows


gavrilov NO[at]SPAM psu.ru
7/14/2004 1:33:49 AM
Hello, Dean
Try this:

select distinct c1, c2 into #tmp_1 from t1
select count(*) as cnt from #tmp_1
drop table #tmp_1

ja
7/14/2004 5:35:47 PM
how to count number of rows?

well, try this....

select count(*)
AddThis Social Bookmark Button