ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
Using query analyzer, name 3 ways you can get an accurate
count of the number of records in a table?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table?
Answer
# 1
To get the total record count of a table use

Select count(*) from table_name
 or
select count(column_name) from table_name
 
Is This Answer Correct ?    1 Yes 0 No
Madhu
 
  Re: Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table?
Answer
# 2
1.select count(*) from <table name>
2.select  count_big(*) from <table name>
3.select rows   from sysindexes where id=?
 
Is This Answer Correct ?    3 Yes 0 No
Mathan
 
 
 
  Re: Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table?
Answer
# 3
count()
@@rowcount
sysindexes
dbcc chektable
sp_spaceused

excution plan
 
Is This Answer Correct ?    0 Yes 0 No
Ramakrishna
 
  Re: Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table?
Answer
# 4
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 ?    7 Yes 2 No
Kumar.t
 
  Re: Using query analyzer, name 3 ways you can get an accurate count of the number of records in a table?
Answer
# 5
1) Select count(*) from tablename

2) sp_spaceused tablename

3) Select id from sysobjects where name ='tablename'
GO
Select * from sysindexes where id=?   ---Put ID no. from 
above query
 
Is This Answer Correct ?    0 Yes 0 No
Mahmood
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is a deadlock and what is a live lock? How will you go about resolving deadlocks? Microsoft1
Can I know,how to Execute Funcion and Trigger through command(Manualy Execution) in MS SQL/SERVER 2005,give me answer with Example.  1
What are the authentication modes in SQL Server?  2
what is syntex second or third highest salary. thanks & Regards Dhirendra sinha  4
can you any body tell me simple recovery,full recovery,bulk logged recovery where can use?  1
What is the difference between IN and EXISTS operators in SQL Server? Intelligroup3
When do we use the UPDATE_STATISTICS command?  3
What are the different types of replication? How are they used?  3
write coding for importing sql data into a word excel... Oracle1
Delete duplicate rows from a table without primary key by using a single query Table Employee empname salary A 200 B 300 A 200 C 400 D 500 D 500 Output should be A 200 B 300 C 400 D 500  2
how to get the automatic backup of the database in the sql server  3
What are the new features in SQL Server 2005? Emphasis2
What is Files and Filegroups in SQL Server & it's implementation. Zenith1
can you any body tell me why are go for the rebuild the master database.what is the reason?  1
Difference between Function and Stored Procedure? C1-India4
What is database replicaion? What are the different types of replication you can set up in SQL Server?  2
What is normalization and its forms? Challenger-Financial3
can anyone explain me the concept of Serialization in Detail and Clear? plz its urgent i have interview on friday (15th feb)  1
What is the difference Between Sql-server 2000 & 2005 Value-Labs2
SYNTAX FOR VIEWS WITH EXAMPLE HOW TO LINK TWO TABLES Microsoft1
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com