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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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