in how many ways we can use count()

Answers were Sorted based on User's Feedback



in how many ways we can use count()..

Answer / pravati

In two ways we can use count
1. SELECT COUNT(*) FROM table name.
2.SELECT COUNT(DISTINCT *) from table name.

Is This Answer Correct ?    0 Yes 0 No

in how many ways we can use count()..

Answer / krishna

select count(1) from table name

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

What are user defined functions in ms sql server?

0 Answers  


Explain comment on transactions?

0 Answers  


how many layers of tcp/ip protocol combined of? : Sql server database administration

0 Answers  


What are the steps need to be take improve the speed of a SQLDATA Server?

2 Answers   IBM,


Explain syntax for viewing trigger?

0 Answers  






What are trace flags and mention a few common trace flags used with sql server?

0 Answers  


What is the difference between UNION and UNIONALL?

5 Answers   CarrizalSoft Technologies, CTS,


What is acid properties?

0 Answers  


what is a correlated sub-query? : Sql server database administration

0 Answers  


Observed that some SP’s / Jobs are processing late, how to troubleshoot to improve performance?

1 Answers  


What is normalization of database? What are its benefits?

0 Answers  


What is the query and subquery?

0 Answers  


Categories