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 -

c# - Get angle of rotation after rotating a view -

ios - How do I set Content-type using Bubblewrap HTTP? -