How do you find the number of rows in a table?

Answer Posted / anand

select count(*) from table_name will hold good if there isn't any WHERE clause in it as it is a AGGREGATE Function.. (just additional information)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

you have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation? : Sql server administration

544


How can we determine what objects a user-defined function depends upon?

524


How to concatenate two strings in SQL Server.

600


Explain atomicity?

580


How to use subqueries with the in operators in ms sql server?

569






What is candidate key with example?

518


What is open database communication (odbc)?

574


Using the customer, and order table in northwind database, please write a query to produce xml?

657


What are the differences between union, intersect, and minus operators?

578


Which sql server table is used to hold the stored procedure scripts?

619


please differentiate between delete and truncate?

560


What is the difference RDBMS and Graph Database?

633


What is left outer join in sql server joins?

557


What is use of attributehierarchyenabled? : sql server analysis services, ssas

616


When does a workload on SQL Azure get throttled?

113