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
Post a Comment