sql - Getting Count and Rows in same query -



sql - Getting Count and Rows in same query -

is possible total table count , rows in same query. this

select count(1),* tbl grouping

you can seek this:

select count(*) on (), (list of other columns here) dbo.yourtablenamehere

the over() clause give count of rows right in query.

sql sql-server-2008

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -