Using query analyzer, name 3 ways you can get an accurate
count of the number of records in a table?

Answer Posted / kumar.t

1. Select Count(EmployeeId) As NoOfRow From Employee
2. Select Count(*) As NoOfRow From Employee
3. Select Count_Big(*) As NoOfRow From Employee
4. Select Rows From SysIndexes Where Id = Object_Id
('Employee') And IndId<2

By
Kumar.T

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an index. What are the types?

594


Explain SSRS Architecture?

139


Can you leave a union at any time?

561


What do you understand by a stored procedure?

625


Can a table be created inside a trigger?

576






Explain an automatic checkpoint

579


Explain data warehousing in sql server?

612


What is shrink log file?

518


How to achieve Paging of records in SQL SERVER?

601


Does index slows down insert statements?

595


What is statement level trigger?

559


How many levels of sp nesting is possible?

598


What is the process of normalization?

571


What is table level trigger?

600


How fixed length strings are truncated and padded?

566