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   SiteMap shows list of All Categories in this site.
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 Trace frag?Where can we use this?  1
Please give me queries for the following 1. To get the count of duplicate records. 2. A query to delete the duplicate records. 247Customer3
What value could be assigned to Varchar Type?  3
When do you use SQL Profiler?  2
Explian different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan? HCL2
What is cursor ? And what is difference between Trigger ? HCL1
how to find number of columns in a table in sql server 2000 and 2005 also Virtusa9
WHY CAN WE CREATE ONLY ONE CLUSTERED INDEX ON A TABLE IN SQL SERVER?  6
logshipping is Any difference 2000 and 2005?  1
what is Archive old data?  1
How do you persist objects, permissions in tempdb  1
What is the basic difference between clustered and a non-clustered index?  3
What is the difference between views and stored procedures? Can we have input parameters for views?  3
What's the difference between a primary key and a unique key?  4
what is the difference between group and having give an example with query and sample output  2
What is SQL server agent? SAP-Labs2
What is row by row processing ?  1
Create Index myIndex On myTable(myColumn) What type of Index will get created after executing the above statement  2
WHAT IS DIFFRENCE BETWEEN TRUNCATE AND DELETE STATEMENT CTS10
PC(code, model, speed, ram, hd, cd, price) Find the hard drive sizes that are equal among two or more PCs. APX2
 
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